3 ms·
I wouldn't even call these things calisthenics. These are requirements for the programming style to be called "functional." Really if you aren't following <Edi
by crimsonalucard 9y ago
I wouldn't even call these things calisthenics. These are requirements for the programming style to be called "functional."
Really if you aren't following <Edit> Most <Edit> of these rules you are not doing functional programming.
The best way to learn about functional is not to follow these rules but to use a functional language that basically enforces these rules. Javascript is not a good language to learn about functional programming.
- jw- 9y agoI'm not really sure why you need the requirement of infinite sequences to do functional programming, or the restriction of no intermediate variables. Let bindings seem like a nice thing to have.
- crimsonalucard 9y agoNo you're right. I missed the infinite sequences thing. I'm going to reword the post from "all" to "most"
- MiyamotoAkira 9y agoYou are right. If you don't follow most of those rules, you are not doing pure FP. My interest on them was because I was writing production code that felt procedural. The rules are there so you can practice with purpose. Once you go into production code, you can discard them, but with knowledge that it will not be because your OOP skills take over, but conscious decisions.