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] 4 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?
davesnx 4 points · Jul 2024
Elm is designed to be a client-side rendered, so lots of client state, interactivity and complexity on the UI. Also, is strongly-typed.
Elixir isnt typed (they are adding types to the language but its still WIP and has been going for 5+ years) and haven't used Phoenix to say much about it, but it's designed to keep all state on the server which isnt ideal for rich UIs, even thought they made impressive demos with it