Learning Functional for Web Dev
New to functional programming and it looks that I am entering an era where there are so many new languages and frameworks coming out and I am overloaded and where I should I spend my time. I would like a language that would not only teach me close to academically the uses of functional, but is also practical for web development as a project that I have in mind is centered around controlled digital lending. Would love for your suggestions. Thanks.
25 comments · 85% upvoted · other discussions
ReScrpt, OCaml or Elm.
Those give the best of fp and applied to frontend, which can play a big role in the future
polystyrenes [OP] 3 points · Jul 2024
OCaml was definitely on the list and would be a language I would love to learn eventually. However (and please prove me wrong because looking up ocaml web development doesn't get me any strong feelings), I don't see a lot of web applications being written in it, at least not as solid as Elm. Which I am considering as the front-end looks very fun and mature I would love to hear suggestions about using it for the back end if possible.
What would the difference of elm vs Elixir + Phoenix might be for learning a FP language?
dp_42 5 points · Jul 2024
One difference between the two is that elm is purely functional, whereas elixir transpiles to erlang bytecode, which is not purely functional. I think this is a fairly minor difference. Looking at this blog post, this dev seems to have combined both. Reading a few other reddit posts, it looks like elm is a good opportunity to go serverless, but you can combine with an elixir or rust backend.