4 ms·
> procedural is just plain easier to debug because you can more easily split it into digestible and dissect-able chunks: divide-and-conquer. That's how you thi
by the_af 8y ago
> procedural is just plain easier to debug because you can more easily split it into digestible and dissect-able chunks: divide-and-conquer.
That's how you think and program in FP as well. Not just debugging, I mean: FP is all about divide and conquer. In fact, Wadler's seminal paper "Why Functional Programming Matters" [1] is all about what he calls modularity, i.e. splitting a problem in parts and then gluing it back together.
[1] https://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf https://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.p...