Results 1 to 12 of 12

Thread: Developers, what is the longest code that you ever wrote?

  1. #1

    Thread Starter
    New Member chrisfoo's Avatar
    Join Date
    Oct 2024
    Location
    Poland, Kujawsko-Pomorskie
    Posts
    0

    Arrow 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!

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,453

    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

  3. #3

    Thread Starter
    New Member chrisfoo's Avatar
    Join Date
    Oct 2024
    Location
    Poland, Kujawsko-Pomorskie
    Posts
    0

    Re: Developers, what is the longest code that you ever wrote?

    I was mainly talking about one script, but that's still impressive.

  4. #4
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,900

    Re: Developers, what is the longest code that you ever wrote?

    Quote Originally Posted by chrisfoo View Post
    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!

  5. #5
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,801

    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

  6. #6
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,537

    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>

  7. #7
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,699

    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.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  8. #8
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    World:\Turkey\User32.DLL
    Posts
    430

    Re: Developers, what is the longest code that you ever wrote?

    Quote Originally Posted by chrisfoo View Post
    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!
    I'M GAOUSEEEERRRRRRR

    Experimental Software and stuff made by me with some being efforts of up to 3 months of endless VB6 IDE

    VBForums is made with VBulletin4, Fun Fact their first 2 letters are same.

    Gaouser is a weird name choice
    I love VB6 and NX 8.5 and CorelDRAW and C++ and HTML4.01 and obsolote stuff and retrocomputing!
    I custom ROM my phones
    Using Win32 API is easier in VB6 than VB.NET

  9. #9
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    World:\Turkey\User32.DLL
    Posts
    430

    Re: Developers, what is the longest code that you ever wrote?

    Quote Originally Posted by wqweto View Post
    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
    I'M GAOUSEEEERRRRRRR

    Experimental Software and stuff made by me with some being efforts of up to 3 months of endless VB6 IDE

    VBForums is made with VBulletin4, Fun Fact their first 2 letters are same.

    Gaouser is a weird name choice
    I love VB6 and NX 8.5 and CorelDRAW and C++ and HTML4.01 and obsolote stuff and retrocomputing!
    I custom ROM my phones
    Using Win32 API is easier in VB6 than VB.NET

  10. #10
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,997

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  11. #11
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    World:\Turkey\User32.DLL
    Posts
    430

    Re: Developers, what is the longest code that you ever wrote?

    Quote Originally Posted by dday9 View Post
    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.
    I'M GAOUSEEEERRRRRRR

    Experimental Software and stuff made by me with some being efforts of up to 3 months of endless VB6 IDE

    VBForums is made with VBulletin4, Fun Fact their first 2 letters are same.

    Gaouser is a weird name choice
    I love VB6 and NX 8.5 and CorelDRAW and C++ and HTML4.01 and obsolote stuff and retrocomputing!
    I custom ROM my phones
    Using Win32 API is easier in VB6 than VB.NET

  12. #12
    Fanatic Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Location
    Germany
    Posts
    544

    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
  •  



Click Here to Expand Forum to Full Width