Re:Clear is better than clever [pdf]
by saagarjha on Monday May 06, 2019 @08:26AM
(#19838742)
FWIW, I write a decent amount of "clever" code (think C right out of K&R) but this took me a couple extra seconds to parse. Maybe it's an acquired skill?
[ Parent
| on HN ]
Clear code is supported because it can be maintained easier by other people, and the original developer won't need to remember the cleverness he/she did in the first place, when he/she returns to the code six months later.
If I write clever code, I document it extensively on top of the clever code, with references if possible.
It's about the life cycle, maintainability and longevity of the code in the first place.