"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 and P. J. Plauger (in The Elements of Programming Style)

@fribbledom Ah yes but when you get that once in a month brain wave it just works. :-P

@fribbledom The first statement does not match my experience. Writing code requires a good guess at how a correct solution looks like for all cases. Debugging is often merely understanding how a singular example execution did not fit that model.

@Drahflow I think the statement is about cleverness when writing the code, not conceiving an algorithm.

@fribbledom TDD helps to detect overly optimistic programing early 😅

Readable even if verbose code is better then showing off with a bunch of esoteric pseudo functional syntax.

@fribbledom that's...if you understand code as well as mr. K

if you're a normal human being it's harder than even O(n) and definitely above 2n imho

Sign in to participate in the conversation

The original server operated by the Mastodon gGmbH non-profit