3 ms·
I'm a huge fan of writing code in an FP style in a language where that's the convention. Erlang, Elixir, OCaml, Clojure, (Hell, even Ruby.) The problem with t
by weatherlight 4y ago
I'm a huge fan of writing code in an FP style in a language where that's the convention.
Erlang, Elixir, OCaml, Clojure, (Hell, even Ruby.)
The problem with the current state of JS and Its popular libraries, is that the convention is to write OOP and Imperative code. Unless your entire team is onboard, its causes a lot of issues.
I feel like js-transpiled languages like Purescript, Rescript, ClojureScript, ReasonML, etc do a really good job of allowing Devs to write functional code on the frontend, while leveraging the JS-lib ecosystem.
I personally have a hard time reasoning about while and for loops, etc, and mutable variables, my monkey brain can't keep track of that many spinning plates.