News for hackers. Stuff that matters.
Re:Functional programming in JavaScript is an antipattern by athenot on Wednesday June 21, 2017 @08:36AM (#14603164)
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.

There are no comments on this comment yet.