Hacker News new | ask | show | jobs
by sethammons 1073 days ago
I've heard the drum against clever code for over a decade. This sums it up well:

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan

1 comments

"If code is written as clevery as possible, it's surely written in a way that it's easy to debug it"... is what I would reply, but I get the gist. :-)
It's very unclear what people mean by "clever". For some people, a map or a fold is already "clever", while for others, this is just very straightforward code.