Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverl... — Brian W. Kernighan

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.

Author: Brian W. Kernighan

Insight: The smartest move isn't always the cleverest one—sometimes it's choosing the boring solution your future self can actually fix. When you're stuck on a problem at work or life, that fancy workaround will haunt you later. Keep it simple enough that tired-you can still understand it.

Source: The Elements of Programming Style, p. 118, 1974

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. KernighanThe Elements of Programming Style, p. 118, 1974

Insight

The smartest move isn't always the cleverest one—sometimes it's choosing the boring solution your future self can actually fix. When you're stuck on a problem at work or life, that fancy workaround will haunt you later. Keep it simple enough that tired-you can still understand it.

Comments

Sign in to leave a comment or reply to one.

Sign in

Brian W. Kernighan

Brian W. Kernighan is a Canadian computer scientist and professor, known for his significant contributions to the development of UNIX and the creation of the C programming language alongside Dennis Ritchie. He co-authored the influential book "The C Programming Language," which has been pivotal in computer science education. Additionally, Kernighan's work spans software engineering, programming languages, and educational resources in computing.

Graph

Related