Lurker News
I think I've broken my own record with this one ~2500 lines of incoherent JavaScript/C#. Works though.

Comments (578) 119 threads

Earlier comments
INTPenis#
Bad code is a relative term. It might look awful but the design might be decent and of course it works or it wouldn't qualify.

I'm maintaining two semi-large applications right now that I wish I had the time to fix.
The bad stuff is basically no documentation, no attempt at pep8 compliance, written before decorators existed in python and very dependent on Python 2 syntax.
But it works and it's actually a very good distributed monitoring system that was ahead of its time. Closed source but it would remind people of prometheus if it was released, yet it was several years ahead of that product.

geekbird#
The ugliest, most incomprehensible code I've ever see was when I had to mess with RedHat's version of Anaconda (for building distros) back in the early 2000s. It was worse than the multi-thousand line TCL screen-scraper that I had to occasionally fix in 1999. It was the first code I'd even seen written in Python. You couldn't really trace anything, it was all so nested and idiomatic. It made the Perl code I inherited from a long-time Perl guru downright comprehensible. I've looked askance at Python since.
blobmarley#
Had to maintain a web code from the pre JSP era,i.e, servlets and writing UI code in Java classes (think writing html in s.o.p). The beauty of it all was that there were only two classes for the entire application: one was the servlet, and the other held all the UI code for all the pages. Requests bounced between the both of them, held together and dictated by a series of "if" conditions checking for "string equals" in a method with 50 variables, all strings, named s, s1, s2..s49. And no comments anywhere.
zie1ony2 replies#
Magento.
zhengyi131 reply#
... which was theoretically better than OSCommerce :/
leesec#
...or Websphere
ttoinou#
Now I understand why Adobe bought them :D

Load more comments