All laws

22Maintainability

Kernighan's Law

Complexity Debt.

If

"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."

Then

Code "cleverness" is a liability, not an asset. Write code that your future self, sleep-deprived at 3 AM, can still understand in 6 months.

Unless

KISS (Keep It Simple, Stupid)

Improve this article on GitHub