All Geek to Me

May 29, 2008

Goto Not the Only Coding Horror

Filed under: Geek Stuff — britinla @ 6:24 pm

Just because you can do something does not mean that you should. This is a solid general principle and it definitely applies to writing code. The very first programs I wrote were in BASIC that only allowed two character variable names. Modern languages enable longer names. This benefits code legibility as CustOrderNo more obviously imparts meaning than CO. This post on TheDailyWTF shows that increased flexibility brings with it increased risk of losing code legibility in variable names that are the length of an entire ZX81 program.


1 Comment »

  1. While GOTO is still in my top 10 offenses, I was impressed and alarmed with the specificity of the method names in your link and believe we may need to add something to our Development Standards …

    Comment by ilegirl — May 29, 2008 @ 10:03 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: