Jul 30, 2017 · 1 min read
Thanks for sharing your experience with functional JS. As you mentioned, the same principles help to structure code in many other languages. I did the very same a few years ago and dismissed for loops and many if/else clauses in C#, and replaced it with linq / Enumerable.
Code is so much more readable. It clearly shows the intention, not the implementation. Thats the beauty of functional programming. I don’t want to read HOW a collection is filtered or mapped by a for loop over and over again. As a programmer I know how to do that. And in the end, it doesn’t even matter, when using a library function for that anyway. But I want to see WHY it is mapped, and thats so much clearer in FP.
