5 ms·
'FP is less commonly understood and harder for the average dev to work with' citation needed - if anything I'd say the opposite is true, reducing state and muta
by rak1507 5y ago
'FP is less commonly understood and harder for the average dev to work with' citation needed - if anything I'd say the opposite is true, reducing state and mutation etc makes code easier to read and reason about.
- peterthehacker 5y agoLook up any programming language popularity survey. Pure FP languages are substantially less popular, therefore less commonly understood and harder for the average dev to work with. If FP was the norm, then you could make the same argument for OO.
- dnautics 5y agoHave you talked to boot campers? They take to FP easily and think that loop structures are insane, e.g: https://twitter.com/shidonichan/status/1457795846750097408?t=hyQYFa2CyQfYa62w6-ciAQ&s=19 https://twitter.com/shidonichan/status/1457795846750097408?t...
- dnautics 5y agoI started a poll on twitter. Now, obviously there is bias since my twitter audience is mostly FP people, but keep in mind: - almost all experienced FP people "started in OO", or at least, imperative. So if they are picking map/reduce it is out of experience with the alternative. - the split between bootcampers/informal and CS/formal is instructive: You can see that "bootcampers", who typically have less need for a low-level mental model of what the metal is doing, find that that for/while loops are harder on the brain than map/reduce: https://twitter.com/DNAutics/status/1459348334007787526?s=20 https://twitter.com/DNAutics/status/1459348334007787526?s=20
- rak1507 5y agoPure FP languages may be less popular/common, that doesn't mean FP ideas are harder to understand. In stackoverflow's developer survey https://insights.stackoverflow.com/survey/2021 https://insights.stackoverflow.com/survey/2021 Clojure was the second most 'popular' language after Rust, and you could argue Rust draws heavily from FP styles too. Languages that are unquestionably OO or procedural, like Java and C, scored lower.