how to write unmaintainable code (funny)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • k0nr4d
    Confirmed User
    • Aug 2006
    • 9231

    #1

    how to write unmaintainable code (funny)

    http://thc.segfault.net/root/phun/unmaintain.html pretty funny article, if you know how to program. discuss.
    Mechanical Bunny Media
    Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development
  • High Plains Drifter
    Confirmed User
    • Jun 2005
    • 2341

    #2
    haha nice list... I've seen many of those techniques used over the years. The easiest and most devestating in my experience is using single-letter variable names.

    Comment

    • Radiate
      Confirmed User
      • Dec 2004
      • 1454

      #3
      dude, whoever wrote that has too much spare time

      icq 199437756 - contact me if you need a solid hosting solution

      Comment

      • LittleSassy
        Confirmed User
        • May 2005
        • 7402

        #4
        hehehe...that's pretty cool

        Proadultoutsourcing.com ~ version 2.0
        OFFSHORE SOLUTIONS PROVIDER SINCE 2003
        ACCOUNT EXECUTIVE 264-580-554

        Comment

        • woj
          <&(©¿©)&>
          • Jul 2002
          • 47880

          #5
          love this one:

          Reverse the usual definitions of true and false. Sounds very obvious but it works great. You can hide:

          #define TRUE 0
          #define FALSE 1

          somewhere deep in the code so that it is dredged up from the bowels of the program from some file that noone ever looks at anymore. Then force the program to do comparisons like:

          if ( var hahahaha TRUE )

          if ( var != FALSE )


          Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
          Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
          Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

          Comment

          • k0nr4d
            Confirmed User
            • Aug 2006
            • 9231

            #6
            my favorite was this:
            marypoppins = (superman + starship) / god;

            I was working on this healthcare job site this one time, the guy had the most fucked variables.
            $ab,$as,$aq,$rq,$rs,$rb,$ra

            I did what I could and added some comments to his code...
            such as

            /* Abandon hope, all ye who enter here */
            Mechanical Bunny Media
            Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

            Comment

            Working...