3 ms·
Imagine if engineers at Intel were told: design circuits that an electronics novice can understand! Sometimes, the novice doesn't understand the problem that t
by kazinator 3y ago
Imagine if engineers at Intel were told: design circuits that an electronics novice can understand!
Sometimes, the novice doesn't understand the problem that the code is solving, no matter how the code is written, and even if it is documented in detail.
Now, sure, if people who easily understand what the code does have trouble seeing how the code does it, that could be a problem. Especially if the code uses a paradigm that they already understand.
If code solves a problem they understand, but with some unfamiliar paradigm like logic programming or functional programming, that's their problem, though.
"Don't use logic programming or functional programming because some novices don't understand it" isn't very good general advice. In situations where it makes sense, it's not about the quality of the code but about programmers being easily replaceable with novices off the street.
I don't see why any programmer should, as a matter of habit, write any code that can be maintained by people less knowledgeable or skilled than he or she. Unless it's stipulated as a contractual requirement. In whose interest is that, anyway?