-
Oct 10th, 2024, 04:23 PM
#1
Thread Starter
New Member
Developers, what is the longest code that you ever wrote?
I'll start, the longest code that I wrote was around 500 lines? I don't exactly remember what. but I think it was in Python.
Share your experiences!
-
Oct 10th, 2024, 04:29 PM
#2
Re: Developers, what is the longest code that you ever wrote?
Do you mean for one application? If so, I think it was probably a few hundred thousand lines, though I've never counted.
My usual boring signature: Nothing
-
Oct 10th, 2024, 04:31 PM
#3
Thread Starter
New Member
Re: Developers, what is the longest code that you ever wrote?
I was mainly talking about one script, but that's still impressive.
-
Oct 10th, 2024, 06:03 PM
#4
Re: Developers, what is the longest code that you ever wrote?
Originally Posted by chrisfoo
I'll start, the longest code that I wrote was around 500 lines? I don't exactly remember what. but I think it was in Python.
Share your experiences!
Geez...I wrote COBOL for at least a decade. If you count the different divisions as code, I did a lot of typing. So thousands of lines of code. I also remember the biggest link program, dll in today's terminology, you could do was 512K
Last edited by TysonLPrice; Oct 10th, 2024 at 06:15 PM.
Please remember next time...elections matter!
-
Oct 11th, 2024, 02:54 AM
#5
Re: Developers, what is the longest code that you ever wrote?
My biggest/longest SQL-SELECT-Statement is 280 Lines long (at least in the SQL-Editor i use).
At last count, 24 CTE's accessing some 30-40 tables via some 100 JOINS (didn't count, too lazy)
And no: It's not each Column in its own line. I'm using pretty much the whole width of my 27" screen.
And that's just the SQL-Statement. Don't remember how many lines the VBA-Code had, that used that thing....
at a guess at least some 1000 Lines, scattered across different modules
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
Oct 11th, 2024, 03:42 AM
#6
Re: Developers, what is the longest code that you ever wrote?
Just peeked at one recent stored procedure: 4'279 lines of code, file size of 168 KB
Largest VB6 class in the same project: 20'123 lines of code, file size of 684 KB
cheers,
</wqw>
-
Oct 11th, 2024, 05:39 AM
#7
Re: Developers, what is the longest code that you ever wrote?
If I count the sp's I inherited and working with it would be 10-15.000 lines.
For program that I personally wrote without colleagues it would, hold, I have it here... 248+247+10527+2808+332+607+188+189
That was on the covid era o I had time in my hands.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Oct 11th, 2024, 11:30 AM
#8
Hyperactive Member
Re: Developers, what is the longest code that you ever wrote?
Originally Posted by chrisfoo
I'll start, the longest code that I wrote was around 500 lines? I don't exactly remember what. but I think it was in Python.
Share your experiences!
around 1000 lines at VB6!
-
Oct 11th, 2024, 11:31 AM
#9
Hyperactive Member
Re: Developers, what is the longest code that you ever wrote?
Originally Posted by wqweto
Just peeked at one recent stored procedure: 4'279 lines of code, file size of 168 KB
Largest VB6 class in the same project: 20'123 lines of code, file size of 684 KB
cheers,
</wqw>
20123? VB6 IDE would lag very badly at that point
-
Oct 11th, 2024, 12:49 PM
#10
Re: Developers, what is the longest code that you ever wrote?
Before I started abstracting code there would be files (typically forms) with thousands of lines of code. I look back at that now and think of what a stooge I was.
Today, if I see a class starting to exceed 400 lines, give or take, I start thinking about how I can abstract the code.
-
Oct 12th, 2024, 03:22 AM
#11
Hyperactive Member
Re: Developers, what is the longest code that you ever wrote?
Originally Posted by dday9
Before I started abstracting code there would be files (typically forms) with thousands of lines of code. I look back at that now and think of what a stooge I was.
Today, if I see a class starting to exceed 400 lines, give or take, I start thinking about how I can abstract the code.
If it exceeds 400 lines then it involves Win32 API.
-
Oct 12th, 2024, 09:08 AM
#12
Re: Developers, what is the longest code that you ever wrote?
A few years ago, about a thousand lines. Today, I try to keep it around 300 or less per class and modules.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|