3 ms·
I didn't take the comment to mean that other developers can't understand clever code, rather that writing overly clever code just isn't the best approach when a
by rurp 7y ago
I didn't take the comment to mean that other developers can't understand clever code, rather that writing overly clever code just isn't the best approach when a more plain solution will do. Writing code that takes another developer an hour to read through and understand wastes a lot of time compared to code that can be read and understood at a glance.
- hinkley 7y agoThis is most important when scanning code. When I’m trying to add functionality of fix a bug, I’m going to read dozens and dozens of functions to winnow down to a handful of candidates. Simple code can be filtered quickly and cheaply. Clever code requires contemplation. Which clears working memory. Yes, I can understand your code. But I shouldn’t have to work for it.