logoalt Hacker News

worblelast Sunday at 2:08 AM2 repliesview on HN

See: Kernighan's Law

> Everyone knows that debugging is twice as hard as writing a program in the first place. So if you’re as clever as you can be when you write it, how will you ever debug it?

https://www.laws-of-software.com/laws/kernighan/


Replies

DrewADesignlast Sunday at 2:24 AM

I think people misunderstand this quote. Cleverness in this context is referring to complexity, and generally stems from falling in love with some complex mechanism you dream up to solve a problem rather than challenging yourself to create something simpler and easier to maintain. Bolting together bits of LLM-created code is is far more likely to be “clever” rather than good.

SilverSlashlast Sunday at 4:28 AM

What an amazing quote!