Simple is good

I spent quite a bit of time today trying to fix a bug in my computer program. I systematically broke everything down to cases, treated each case differently, tried to make sure that this one was parallel to that one, yada yada yada.

Nothing worked quite right.

Then, all at once, I realized that I could replace the entire elaborate structure by a single short line of code. And that one line of code worked like a charm.

I was now a happy man. I’m sure there is a lesson in here somewhere.

Leave a Reply