3 ms·
JS may not be the most elegant language in the world, but it's still possible to apply some functional patterns to it without having to use a "functional" runti
by athenot 9y ago
JS may not be the most elegant language in the world, but it's still possible to apply some functional patterns to it without having to use a "functional" runtime/transpiler.
My draw to FP is to limit side-effects as much as possible. Personally I like to follow a message-oriented setup (stealing a play from Erlang's book) instead of shared variables. A useful lib I found on the client-side is postal.js but there are many other ways to do it.