by splintercell · 5y ago · 0 comments
In my experience, Elm provides the best midpoint between the power of more advanced level Functional Programming Languages and ease of Javascript. I recently trained my friend in India to be able to use it in two weeks (he has only Python/Java experience and comes from testing automation background).
A lot of people complain about the community and the BDFL, but to me it still beats using Javascript (or Typescript) for a personal project. I don't have to worry about runtime bugs in the UI logic (all of them were in the js code in my ports).
The other FP to-js language I've tried is ReasonML (now ReScript), which is also nice, but it aims to become a language which compiles to correct js code (i.e. in your head, you're still writing js code, but with a very good compiler preventing you from writing bad code). This approach has its own pros and cons.
I am currently considering a very interesting approach for my next project. Elm for the UI code, and ReScript for ports (and I understand Elm would be a different flavored language and ReScript, different). Maybe its a crazy idea, maybe it won't work out, but still, I'll get to learn.
No comments yet.