|
12k lines in Program.cs for a console/batch processing application running at a government authority where I used to work. It was for validating and processing Financial Transactions (MiFID II)
The original developer was on extended maternity leave+vacation (1.5 year). No one wanted to give maintenance to it (neither the original dev, when she came back 8 months after I was hired) because it was too unwieldy to do anything there. I was hired specifically to deal with it. Took around two months to have it on my mind to actually start breaking it down.
Since no one was interested in working on the beast, I kinda grew fond of the project because it was important, and no one bothered/pressured me when I told them that improving things would take time. Also, I was free to perform any needed refactorings to the thing.
I managed to improve its performance by several times first (to remove processing bottlenecks), and then started refactoring it, bit by bit.
It was a pity I had to leave that project behind and go back to my home country. Since I was a contractor, and it was before the pandemic started, so people were not very fond of offering me to work remotely.
|
|
|
|
|
I was tasked with "tidying up" a killer demo hacked up by a data scientist on our team during his holidays.
After looking at the single 15k line Javascript file he produced, I suggested we rewrite the demo frontend from scratch since it was going to be difficult to work on (even though it looked really polished).
That suggestion was shot down as unnecessary engineering, but when I looked closer it became clear that he'd "borrowed" a complete demo published by another company -- a single minified Javascript file -- and swapped out of a few pieces so it called his own prototype backend running on a laptop (that bit at least was entirely his own work).
At that point I suggested this might be a good reason for us to proceed with the frontend rewrite, and that I wouldn't be comfortable putting my name on another company's pilfered and tweaked demo. The DS seemed relieved and immediately agreed. He was a good guy, but probably crumpling under delivery pressure from management, and he never really intended for an internal proof-of-concept to suddenly become a user-facing feature of the site, but by then it was hard to backpedal until I forced the issue.
|
|
|
|
|
Probably not a reasonable answer because this is from back in the mainframe days but I seem to recall the Unisys A-Series operating System MCP (yes we laughed when Tron came out) was a million - ish lines of code. And not assembly code, written in NEWP, an Algol loke language.
|
|
|
|
|
Mircea Neacsu wrote: what's the largest single source file you ever met?
File?
I found a C++ class which spanned 3 source files - at least.
It had 20,000 lines of code and at least 200 attributes and 200 methods.
Years later I read the book "AntiPatterns" in which it described the God Pattern. That is what that class was.
|
|
|
|
|
I wrote an SVG parser today.
I didn't want to.
The one I had already was too "clever" by half.
"I know, I'll just modify the passed in string I'm parsing by inserting null terminators in it and storing pointers to various locations in the string."
Yeah, you think you're slick, but what if that string is coming from a .text segment?
Or what if you have a huge file you don't want to load into a string first?
*headdesk*
If you ever consider doing what that author did, ping me and I'll help you write a *proper* parser.
To err is human. Fortune favors the monsters.
|
|
|
|
|
|
I'm pretty clear on the SVG format.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Hopefully, you already had a JavaScript implementation you could bolt onto the SVG!
|
|
|
|
|
I tried to organize a professional hide and seek tournament, but it was a complete failure...
Good players are hard to find.
*hides*
|
|
|
|
|
I once took a shot in the dark and tried to organize a laser tag event.
The amateur horseshoe tournament was a fiasco when it was revealed that one of the teams had a ringer.
modified 2-Mar-23 11:08am.
|
|
|
|
|
I tried to set up an Procrastination Society, but ... maybe one day.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
sign me ....
>64
Some days the dragon wins. Suck it up.
|
|
|
|
|
I am so lazy that I even put off procrastination.
|
|
|
|
|
My SO says I'm trying...very trying!
|
|
|
|
|
I tried holding a water polo event, but the horses drowned.
// TODO: Insert something here Top ten reasons why I'm lazy
1.
|
|
|
|
|
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
|
accurate
To err is human. Fortune favors the monsters.
|
|
|
|
|
I admire the way they look at you without looking.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
|
Of all of the new languages and frameworks that pop up every day, I'd like to know how many developers actually use them, other than the people who created them.
|
|
|
|
|
I'm currently using Blazor. So far so good.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
Cool. Are you using any of the others?
|
|
|
|
|
I just finished a Blazor project. I like it, though there was a learning curve, as I came straight from the ASP.NET Framework 4.7.2 world, skipping all the MVC/MVVM rage that came after.
Blazor reminds me of Classic ASP but with C# rather than VB script.
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
Reminds me of Silverlight ... but I do enjoy Blazor.
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
|
|
|
|