by dustingetz · 14y ago · 0 comments
functional programmers get to express their ideas as code
imperative programmers are so busy playing whack-a-mole with their bugs that they don't have time to think about new ideas
just look at the research[1] coming out of the <del>Clojure</del> functional programming community - especially Datomic. once you learn how to get your defect rate under control, you have time to explore crazy awesome new ideas
[1] https://thestrangeloop.com/archive/2011
[1] https://thestrangeloop.com/archive/2012
editedStop drinking the cool-aid. Functional programming solves a lot of typing errors (if the given language has stronger typing than an imperative language) and makes composition easier in some cases (if the language is lazy).
But: an algorithmic error is still an algorithmic error, an incorrectly designed data structure is still an incorrectly designed data structure. No matter what language you use.
In addition to that, you get back a different set of problems: e.g. you have to reason about when something gets evaluated in a lazy regime in order for your program's heap not to blow up, and the translation to machine code is often not nearly as simple as an imperative language, which makes it harder to optimize functional programs.
(Ps. I love functional programming.)
http://www.dustingetz.com/2011/05/05/how-to-become-an-expert...
http://www.dustingetz.com/2012/10/07/java-sucks-because-idio...
The flaw is in us. Our ideas are malformed and flawed. Simply expressing ideas is not enough.