Elm (0.18): A Refreshing Functional Programming Language For The Front End
Sun, Aug 5, 2018 in /web-programmer/I’ve really been enjoying my recent experience with the front end (functional) programming language called Elm for the following reasons:
-
The Elm Architecture is great for single page apps (SPAs) as the rendered view will update automatically depending on the data model which gets manipulated when events are triggered.
-
Immutable variables and Strong typing produces reliable and readable code, although slightly trickier to write (at first).
-
The compiler is extremely smart and helpful (and a bit strict), often telling you exactly what went wrong and where to find it. Compiled Elm apps have slogan of “No Runtime Errors” since the Strict Typing allows the compiler to ensure there will not be any.
-
It is compiled into javascript and easy to embed into any existing page/project.
Here is my guide to getting started (with vim as my IDE):