Ok, so this one is really more of a joke than anything else, but it is Friday and I am willing to put up another Amazon gift certificate for the winner (20 bucks will get you the new Miley Cyrus!!). As you know, encapsulating code and reuse is a "Good Thing (tm)". ColdFusion has long had good options for this - from the simple cfinclude, to custom tags and UDFs, to CFCs. Of course, just because you use a CFC doesn't mean your code is organized nicely. Case in point - BlogCFC. The core component for my blog comes in at a whopping 3087 lines. That doesn't automatically mean that its bad, but.... well, you get the idea.
So here is the challenge. Using Pastebin (not the comments!) share the source of the largest file you have ever created. You must share the code. If you can't, too bad. The person with the largest number of lines will win. (With "win" being a bit relative. ;)


Comment 1 written by Mike Chandler on 2 October 2009, at 10:47 AM
Comment 2 written by Allan Jagos on 2 October 2009, at 12:38 PM
http://pastebin.com/m1866eafe
Comment 3 written by Mike Chandler on 2 October 2009, at 12:51 PM
http://pastebin.com/m6509a93e
Comment 4 written by Raymond Camden on 2 October 2009, at 1:19 PM
Comment 5 written by Gareth Arch on 2 October 2009, at 1:24 PM
Candidate Profile? :) Saw some similarities in your code to the code I work with...alas that page is only 3172 lines long in our code base :)
Comment 6 written by Sarah Kelly on 2 October 2009, at 1:43 PM
Comment 7 written by Raymond Camden on 2 October 2009, at 1:44 PM
Comment 8 written by Matt Woodward on 2 October 2009, at 1:50 PM
Comment 9 written by Daria on 2 October 2009, at 1:51 PM
Comment 10 written by Tim Garver on 2 October 2009, at 1:55 PM
12991 lines of nastiness.
I can not lay claim to this POS, but I did do some work to it.
Also it is not a cfc if that matters.
I will post the url if it ever loads
Comment 11 written by Tim Garver on 2 October 2009, at 2:02 PM
Error:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1916051 bytes) in /home/pastebin/lib/geshi/geshi.php on line 1884
Comment 12 written by Tim Garver on 2 October 2009, at 2:08 PM
Here is a CFC I wrote, that handles dispatching of service agents
3347 lines
Comment 13 written by Dennis Clark on 2 October 2009, at 3:32 PM
I almost fell out of my chair laughing when I read the following comment on line 628 of your pastebin:
<!---jd: hack to bypass I9 req for UK cands. Here's the thing, this system wasn't designed to support customizable forms. But we're customizing forms. So. yeah it's a hack. deal with it. otherwise i'm billing 100 hours to come up with some really drawn out solution that wil work better in the long run but in the near term will cost more money and therefore piss off everyone standing at the shrimp buffet --->
Sounds like JD was having quite a bad day when he wrote that!
Comment 14 written by Mike Chandler on 2 October 2009, at 4:23 PM
Nice, isn't it? JD works right beside me and we just had a good laugh about that. Every time someone has to revisit this particular script, it thoroughly destroys the rest of their month.
The company that originally provided us with this code literally employed dozens upon dozens of CF developers and turned them over quickly, so there's a myriad of different styles and patterns in the codebase. Many of the patterns and techniques, I'm sorry to say, are a disaster! ;)
Comment 15 written by Charlie Griefer on 2 October 2009, at 5:53 PM
That just brought back memories. Painful ones.
I have to say I don't recognize that particular code. Thankfully I didn't write it nor did I ever have to work with it. But let's just leave it at I'm not surprised :)
Comment 16 written by Mike Chandler on 2 October 2009, at 6:35 PM
We've interviewed quite a few people from that company. Some of them tell appalling stories. Others didn't notice a problem. The ones that didn't notice a problem don't get a second interview! ;)
Comment 17 written by Zarko on 7 October 2009, at 2:12 AM
[Add Comment] [Subscribe to Comments]