3 ms·
> Learning Node.js unlocked whole paradigms I didn't understand in C#. I never really "got" functional programming Don't get me wrong, but I'm pretty sure you
by bad_user 10y ago
> Learning Node.js unlocked whole paradigms I didn't understand in C#. I never really "got" functional programming
Don't get me wrong, but I'm pretty sure you still don't get functional programming, because functional programming is not practiced within the Javascript / Node.js ecosystem.
Yes, there are some exceptions here and there, some libraries like Facebook's React have FP-inspired ideas in them (even though those components are modelled with state and hence have nothing to do with FP) and working with asynchronous results signalled by callbacks is so freaking horrible that people have began using Promise abstractions sort of inspired by FP, except most of them broken. But no, unless you're into one of the languages that actively promote FP, like ClojureScript, PureScript, Elm, Scala.js, then you're probably not doing FP.
As evidence, go to GitHub, pick any sampling of Javascript projects and witness how a vast majority have nothing to do with FP.
Furthermore I think that with this argument you're proving the parent's point. If you want FP, then take the time to learn and work with one of the languages that actively promote FP and be prepared to suffer because it's not easy.