AyriA (ayria) wrote,

  • Mood:

Slacking off

So after getting somewhat frustrated with working on my term project for economic forecasting, and in particular dealing with the crummy econometric program Shazam, I decided to slack off instead. To start with, I discovered how I might ensure a job for life! All you have to do is follow the suggestions listed in the following document on how NOT to code:
How To Write Unmaintainable Code
And I know that probably many people have already peeked at this document or some similar document before, but that doesn't make it less entertaining.

Similar-Sounding Similar-Looking Variable Names: This is a suggestion that musicdieu appears to already follow with his "foo" and "zoo" variable names.

There are so many great ideas to sift through that it's hard to pick out which would impress me most. Nevertheless, the following example was pretty entertaining.

Choose variable names that masquerade as mathematical operators, e.g.:
openParen = (slash + asterix) / equals;

I mean.. WTF?

From there I wandered on to The Daily WTF for some more chuckles before I realized that it'd gotten a little late.

Anyway, to top it all off, This Code Sucks has some gems if you're really looking to laugh.. or cry.
  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment
Yeah, I started reading through Unmaintainable Code last year. Only got probably 1/3-1/2 of the way through, but it was hilarious ;-)