2 ms·
Really, so what should you use a ton of in hopes of making code easy to understand for a programmer that doesn't understand first-class functions? What makes y
by mquander 16y ago
Really, so what should you use a ton of in hopes of making code easy to understand for a programmer that doesn't understand first-class functions? What makes you think they understand polymorphism? What about exceptions? Do you think they understand pass-by-value versus pass-by-reference? Do you think they understand any data structures? Pointers? Loops? Boolean logic?
It's ridiculous to complicate your code in an attempt to hit some moving target of "an ignorant person might be able to understand this." If a "bread-and-butter" programmer is using a modern language and doesn't understand functions, the correct response by everyone involved is for that programmer to spend some time understanding functions. I dare say the same is true for monads, although in many languages monads are hard to abstract out, and thus have less of an everyday value.