Software Development

Revisited: The greatest programming tip ever written

Here's an ingenious little tip to all programmers that will (viciously) guarantee an improvement in the quality of the code you produce.

This tip was originally mentioned in the Geekend Blog by Jay Garmon for its humor, but there is some wisdom in its message, don't you agree?

goto.jpg

Here's an ingenious little tip to all programmers that will guarantee an improvement in the quality of the code you produce -- one that somebody included as an advisory pop-up for MS Visual C++. Found via reddit.

10 comments
dmass
dmass

The link to "an advisory pop-up for MS Visual C++." not valid.

smckenna
smckenna

Just like the POTUS, when you get that 3AM call... but in this case what does the code look like? :)

Tony Hopkinson
Tony Hopkinson

Write it as though you were going to have to maintain it, after a bout of amnesia... Course if the you is me, it's doubly scary on account of my maniacal tendencies. :D

g01d4
g01d4

Many, many years ago I was an admin for a niche computer/operating system. One of the users went off his meds shortly after I upgraded the OS. I explained what changes he'd have to make to his code to keep it working and he wasn't too happy. Coworkers would smile as they came to 'check on me'. A couple weeks and incidents later (fortunately not w/me) he was on indefinite medical. Now that I think of it, how many of us could use the meds excuse if Windows 8 was forced upon us at work :)

Solenoid
Solenoid

I'm not a programmer, but I can surely commiserate with the sentiment. I have one edit to generalize it for my industry. Replace "code" with "design". Possibly replace "maintain" with "build", although our end users maintain it also, so it'd carry through either way. Do programmers ever consider their work a design, or is it always just "code"?

Tony Hopkinson
Tony Hopkinson

described by code, course we haven't defined what we mean by code yet. :p

barrynovak5
barrynovak5

When you meet the serial killer face-to-face, ask him if he prefers to be called a maniac, or maniacal.

NickNielsen
NickNielsen

But it still makes the point, doesn't it? :D

justice4all76
justice4all76

I asked him what he prefers. He said, "Barry." ;^)

Editor's Picks