Slashdot Mirror


How To Write Unmaintainable Code

An anonymous reader writes "Make sure you're irreplaceable -' In the interests of creating employment opportunities in the Java programming field, I am passing on these tips from the masters on how to write code that is so difficult to maintain, that the people who come after you will take years to make even the simplest changes. Further, if you follow all these rules religiously, you will even guarantee yourself a lifetime of employment, since no one but you has a hope in hell of maintaining the code. Then again, if you followed all these rules religiously, even you wouldn't be able to maintain the code! You don't want to overdo this. Your code should not look hopelessly unmaintainable, just be that way. Otherwise it stands the risk of being rewritten or refactored. '"

11 of 437 comments (clear)

  1. Or just write it in perl by espergreen · · Score: 5, Funny

    #!/usr/bin/perl
    &!@&/*!QW(*()@!@(I!@()!@)(!@*/\()!@&*(@!/*(&

    Ok, I admit it. I just banged on the keyboard :(

    1. Re:Or just write it in perl by Marsala · · Score: 5, Funny

      That may be, but you managed to create a pretty solid SMTP server anyway.

    2. Re:Or just write it in perl by hkb · · Score: 5, Funny

      Ok, I admit it. I just banged on the keyboard :(

      Yet it still does something in Perl. Witness the power!

      --
      /* Moderating all non-anonymous trolls up since 2004 */
    3. Re:Or just write it in perl by theonetruekeebler · · Score: 5, Funny
      I admit it. I just banged on the keyboard

      That's odd---I do the same thing when I'm coding Perl. Usually with my forehead, though...

      --
      This is not my sandwich.
  2. How to write unmaintanable code by ThatGeek · · Score: 5, Funny

    How to really write unmaintainable code:

    Apply equal parts of Perl and Guinness

    --
    What are you eating? isItVeg?.
  3. Don't execute that... by Mr.+Underbridge · · Score: 5, Funny

    ...it generates a root exploit.

  4. Re:missing icon? by Golias · · Score: 5, Funny

    Ummmm, where's the foot icon? It's good to know that the author considers this a joke, but I'm afraid that Hemos might not be in on it...

    If you've seen the Slashcode, you would know why this joke would be lost on Hemos and the rest of the staff here.

    Zing!

    --

    Information wants to be anthropomorphized.

  5. Re:Dupe by Anonymous Coward · · Score: 5, Funny

    The joke's on you! Slashdot beat digg by 6 YEARS: How To Write Unmaintainable Code Posted by Hemos on Thu Nov 18, '99 10:32 PM
    Yeah... still a dupe.

  6. Re:Jeez, just run an obfuscator by Soruk · · Score: 5, Funny

    What version control system is it you use that allows you to check in 4-stringed musical instruments slightly larger than a violin?

    --
    -- Soruk
  7. Re:I can. by bataras · · Score: 5, Funny
  8. Re:not how it works. by irablum · · Score: 5, Funny

    I was once brought back in even though my code was absolutely maintainable. I had left the company for other reasons ( Inner Mongolia ) but they brought me back because something didn't work. I spent 10 minutes figureing out that the problem was hardware, 5 minutes directing the tech on how to fix the hardware, and 2 hours and 45 minutes bullshitting with my former co-workers, all at $75 an hour.

    Ira