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
stabbles1 reply#
Nobody mentioned Wordpress yet? Last time I checked it was a terrible pile of procedural code
Endy#
Without a doubt. I've run into so many little "glitches" in WP that it really soured me to CMS backed websites. The next site I run is going to be 100% hand-coded.

... and it'll probably load a lot faster than the PHP+CSS nightmare that is WP.

agentultra#
A web application written in C++ before there was the STL or many libraries written for C++... in 2007 or so. It was probably 200k LOC or so of CGI application code, libraries to render PDFs, manage a filesystem of XML files, an XML parser... none of it documented or tested.

The developer who was leaving the company dropped a copy of Michael Feathers' Working Effectively with Legacy Code. There was a small amount of Python to wrap the API to the C++ code using Boost against which a small suite of unit and functional tests were being developed. I learned a lot on that project.
I never fully understood how the C++ code all worked but having that API interface in Python helped to grok parts of it (and eventually replace it with a few hundred lines of Python code at a time).

billwear1 reply#
Actually, if you want to see clean code that works well, try the traditional ex/vi source. It's something like 20K lines, but very neat functional programming all the way down.
mkolassa#
I just want you to know that through rabbit holing 'traditional ex/vi source', the following happened...

1) Read a Wikipedia page for vi.
2) Noticed that Bill Joy used a Lear Siegler ADM-3A terminal.
3) Discovered that Lear Siegler was the result of a merger between Siegler Corporation and Lear, Inc.
4) I know that Lear, Inc. was founded by William 'Bill' Lear.
So, not only do we have Bill Lear to thank in a way for vi, but your username is oddly familiar...

pacoWebConsult#
12k line code-behind for an ASP.NET page that duplicates PDF files, driven off of a spreadsheet, and adds some additional information at the top of each page. This has generated the majority of a major state's ballots for at least the past 4 elections.

Load more comments