Author Topic: How to Program Part 2  (Read 2217 times)

Neo

  • Guest
How to Program Part 2
« on: July 01, 2006, 02:51:16 pm »
Don't you hate it when people are looking through your code? Don't you wish that it were impossible for others to read it? Well use this tried and true method of programming, to insure that not a single person alive can read your code, including you!

    * Remarks are the tools of Satan! Never use them!
    * Don't put blank spaces in between major chunks of code, they just waste space.
    * Don't bother with long variable names when a simple A, B, or C will do the trick even faster.
    * And make sure the variable name has nothing to do with what it represents. If the variable holds a name, call it Q.
    * Hungarian Notation? Oh puh-leeze!
    * tYpE yOr CoDe In 1334! iT mAkEs YoU a kewl d00d!
    * Try and fit as many lines of code on one line as possible. This is easy for you C format coders. Just put the semi-colon, but don't hit enter. BASIC coders can just put a colon and keep typing.
    * Don't call methods more than once. If you need to reuse it, just make a new one everytime.
    * Always make your if statements one line. (if{}elseif{}else{}) Don't worry about blocking it.
    * Nothing is better than one GIANT nested while...loop with a couple hundred for...loops and switches in it.
    * Indent? Why Indent? What a waste of time!
    * Don't bother with breaking up code into methods. Just make one BIG method with lots of if checks.
    * For you BASIC coders, I can't stress this enough. Line numbers!
    * Overload your methods as much as possible and try to make a property, method, and event all with the same name!

By using this great method, you guarantee that not a person alive could read your code!

Offline contingencyplan

  • Villain
  • Ivory-Tower Theorist
  • Admiral
  • *****
  • Posts: 977
  • Karma: +1/-0
  • Must I sin once, and repent forever?
    • View Profile
    • My Blog
Re: How to Program Part 2
« Reply #1 on: July 01, 2006, 04:40:22 pm »
You.

Die.

Now.

Seriousy, though. two comments:

1) I *hate* Hungarian notation. To my knowledge, the only big company that still really uses it is Microsoft. Nuff said.

2) I don't know which language you're thinking of that has property, method, and events. However, overloading functions is not inherently bad, if they behave the same way. If two overloads do something radically different, like these functions, then the programmer should be shot too.

Code: [Select]
int foo (int i)
{
    return i + 1;
} // end foo

float foo (float f)
{
    return f * f;
} // end foo

Agreed?

However, all in all, a very humourous post. Damned people trying to read my code... Screw 'em!
We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true. 
    ~Robert Wilensky

It is not bigotry to be certain we are right; but it is bigotry to be unable to imagine how we might possibly have gone wrong.
    ~GK Chesterton

Men never do evil so completely and cheerfully as when they do it from a religious conviction.
    ~Blaise Pascal