00:00
165
More
A trip through some bad code.

Credits

Likes

See all likes
  • Rene Schulte 1 year ago
    WOW! What is the final line count?
    (And where is it from?)
  • Trumaine Rajkumar 1 year ago
    I would also like to know the final count. If this is two.java I can only imagine what one.java looks like!
    public static void main(){ two big = new two(); }
    HA!
  •  
  • Frango Ssauro 1 year ago
    hahahaha, i love it. Specially the music!
  •  
  • neekoh 1 year ago
    To: Bob
    Subject: Bug triage override
    Hi,
    You have been assigned to investigate and fix a number of crash bugs in our online stock exchange system going live on Monday. The bugs manifest infrequently and randomly. The developers haven't been able to pinpoint the issues or the circumstances they occur in. The QA team hasn't been able to reproduce them reliably. Expert help is called for. The developers suggest you start with two.java since it's the easiest to follow. One and three may be tricky. Good luck! Let's talk about any weekend compensation after you've solved the problem.
    Thanks,
    The Management
  •  
  • LMAO!

    Even without being able to read, I can see a bunch of WTFs and anti-patterns.

    - Highlander Pattern: all the logic is part of one single package and class.

    - Megazord Pattern: a method that accomplishes 20 different tasks and is some 400 lines long. A bunch is just copy 'n paste from other "if" blocks.

    - Import hell: Hundreds of unnecessary imports in one single module, increasing VM load times to infinite. Impossible to refactor with certainty.

    - Robot comments: IDE-generated comments for each method that just replicate the method argument signature. Totally useless.

    - Robot methods: IDE-generated getters/setters and stubs. Just add cruft.

    - Coal-train Pattern: one liners that concatenate around 100 different method calls.

    - Polka-dot Pattern: magic numbers are everywhere. the programmer liked the colorful code and decided to not refactor hardcoded values into settings.
  •  
  • Slava Schmidt 1 year ago
    But... At least one dont need Finder, IDE and this mvn and ant funny stuff anymore.
    Notepad rocks....
  •  
  • valdas bikauskas 1 year ago
    does it compile?:)
  •  
  • Wow... That's what I would really call bad code!!!
  •  
  • Osvaldo Doederlein 1 year ago
    OMG... if this is not machine-generated code (eg parser generator), just kill the author.
  •  
  • Andreas Renberg 1 year ago
    Yowza, that has got to be a joke. :P
  •  
  • 0xcafebabe 1 year ago
    Wow. Have you measured the cyclomatic complexity? That would be interesting as well, more interesting than the actual line count for me.
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

About this video

MOV
00:02:45
  • 820x614, 94.38MB
  • Uploaded Sun March 07, 2010
  • Please join or log in to download

Statistics

Date Plays Comments
Totals 27K 43 11
Feb 15th 2 0 0
Feb 14th 24 0 0
Feb 13th 8 0 0
Feb 12th 13 0 0
Feb 11th 3 0 0
Feb 10th 7 0 0
Feb 9th 3 1 0