13 ms·
The notion that functional programming is somehow better than imperative or object-oriented is completely and utterly wrong. It has its benefits. In some situat
by RivieraKid 13y ago
The notion that functional programming is somehow better than imperative or object-oriented is completely and utterly wrong. It has its benefits. In some situations, it's the best approach. But in most real-world projects I've come across, a mix of different paradigms is optimal.
- PaulAJ 13y agoThe trouble starts when you try to get your mixed paradigms to fit well together. The original article was making the point that the cost of mixing functional with imperative code means that the functional code is crippled. And I've never seen a project where a mix of paradigms was optimal. Any project, and any part of a project, can be tackled in a functional or OO paradigm.
- RivieraKid 13y agoThe original article was about strictly side-effect free FP, wasn't it? Yeah, that obviously mixes badly with programming styles that use side-effects. Most situations I come across are solvable with a reasonably elegant mix of programming styles.