Re:Why care about functional programming? Part 1: Immutability
by the_af on Thursday March 19, 2015 @05:21PM
(#9234676)
> No one prevents you to use immutable structures in OOP.
No one prevents you, but what about the code other people write?
Re:Why care about functional programming? Part 1: Immutability
by deepsun on Monday March 23, 2015 @03:52PM
(#9252989)
Good point. Fortunately, I had pretty good engineers in my recent teams, but, remembering my older projects, I totally agree with you that it's good when language makes it hard to write bad code for less competent engineers.
Re:Why care about functional programming? Part 1: Immutability
by sklogic on Friday March 20, 2015 @08:25AM
(#9237218)
As long as there is no decent pattern matching in most of the OO languages, they're pretty useless. No matter how big is community and how hip is tooling.
Re:Why care about functional programming? Part 1: Immutability
by fallat on Thursday March 19, 2015 @08:36PM
(#9235588)
You've hit the nail right on the head. People praising FP don't realize (but start to after awhile) that you should combine the FP paradigm with /OTHER/ paradigms as well. Your arsenal of patterns will help you write code. Don't limit yourself to one.
Getting some help from language is nice, but after 10+ years of programming all those patterns (e.g. immutable) become so natural, that you don't really think much about them. Because you know what data structure you want, and see what language offers you. So the whole "which language" deal doesn't make so much difference (although it's easier/harder in some languages). Tooling/libs and community matters way more.