Linked by Thom Holwerda on Tue 18th Dec 2012 23:12 UTC
Windows "Windows XP was the last client version of Windows to include the Pinball game that had been part of Windows since Windows 95. There is apparently speculation that this was done for legal reasons. No, that's not why." I love these stories.
Thread beginning with comment 545850
To view parent comment, click here.
To read all comments associated with this story, please click here.
Laurence
Member since:
2007-03-26

From personal experience, even good devs who have a pretty good idea of what good code looks like can write pretty unreadable code if they are...

1/Coding under strong time constraints, a burst of inspiration, or something else that puts their minds' focus elsewhere.
2/Not able to notice the mess left around until they try to read through it again after a few months without touching it.

The human brain's content indexing abilities are truly a thing of magic, but they become a hindrance when you try to distinguish what's clean from what isn't.

Some good points but I don't entirely agree with point 2 on a personal level.

I tend to rewrite code as I code it (usually because I'm mentally debugging it as I'm programming so find cleaner / more optimal designs as I'm writing it). So the mess generally does get noticed (baring when I'm under time constraints, as you mentioned in point 1.

That's purely my method of programming though. I'm by no means saying it's better or worse, nor that you were right or wrong with your view ;)

These clever snippets become much less funny when you try to figure out what the code actually does, though ;)

Thankfully that example did go on to explain the routine and the reason the for kludge. I just cropped that out of my post as it didn't wouldn't mean much to anyone who wasn't involved in that project.

Reply Parent Score: 4