Old code challenge - Today's longest function
-
stop being cheeky lauren ;) Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
-
Wow - I was recently asked to work on some code and the first thing I insisted on was the right to refactor an 800 line function before adding to it. 1709 has got to be some sort of record. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
i can post if if you like, but i think paul has a bigger one with his post ;) Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
-
stop being cheeky lauren ;) Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
-
i can post if if you like, but i think paul has a bigger one with his post ;) Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
-
The rules: The longest function you can find , must be in old code code you're working on _today_ I've got here a Function called "Optimize" in the code i'm working on - its 1709 lines long, can anyone beat that ? Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
I probably do, but finding it may be difficult. I will have to find a function analyzer to see.... I've only got a decade's worth of code in one project. A header function documentation extraction (similar to doxygen) overran a 4 inch binder last year. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
-
The rules: The longest function you can find , must be in old code code you're working on _today_ I've got here a Function called "Optimize" in the code i'm working on - its 1709 lines long, can anyone beat that ? Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
-
The rules: The longest function you can find , must be in old code code you're working on _today_ I've got here a Function called "Optimize" in the code i'm working on - its 1709 lines long, can anyone beat that ? Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
I've got here a Function called "Optimize" in the code i'm working on - its 1709 lines long, can anyone beat that ? uhhh... If I remove the header comment from DrawCallback() it is 1710 lines, it is the most important function I am currently using too. (and has 2 gotos) X| It calls another function (yes it actually calls functions too) that is 786 lines long. (and it has 3 gotos) X| Networking thread is 1386 lines AppProcessing has to have been rewritten (I just don't remember doing it) as it is a measly 732 lines long. (and neither have gotos) that's from a quick 3 minute perusal. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
-
The rules: The longest function you can find , must be in old code code you're working on _today_ I've got here a Function called "Optimize" in the code i'm working on - its 1709 lines long, can anyone beat that ? Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
May I check back tomorrow @ work? I have a few (!) files containing basically gargantous switch statements of copypasted code. I know that for one, the whole file is >3.5K lines. Duno the actual funciton though.
we are here to help each other get through this thing, whatever it is Vonnegut jr.
boost your code || Fold With Us! || sighist | doxygen -
The rules: The longest function you can find , must be in old code code you're working on _today_ I've got here a Function called "Optimize" in the code i'm working on - its 1709 lines long, can anyone beat that ? Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
:wtf: I have this strange urge to indulge in a bit of knife throwing practice when I see code like that!! ;) Anna :rose: Riverblade Ltd - Software Consultancy Services Anna's Place | Tears and Laughter "Be yourself - not what others think you should be" - Marcia Graesch "Anna's just a sexy-looking lesbian tart" - A friend, trying to wind me up. It didn't work.
-
Heh I got one here thats 14819 lines its written in C for an embedded system can you believe and is absolutely full of #ifdefs which makes it a nightmare to try and understand
14819 lines!? That's a small application all by itself. Is it main()? ;) -- Weiter, weiter, ins verderben. Wir müssen leben bis wir sterben. I blog too now[^]
-
I am sure someone could re-write your post in one line... ;) regards, Paul Watson South Africa Michael Dunn wrote: "except the sod who voted this a 1, NO SOUP FOR YOU" Crikey! ain't life grand?
-
The rules: The longest function you can find , must be in old code code you're working on _today_ I've got here a Function called "Optimize" in the code i'm working on - its 1709 lines long, can anyone beat that ? Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
1170 lines. I think it nests down to 4 ifs and a switch, so there are a lot of cases to handle. And it's called recurseNodeNames(), so it gets called a LOT. :-D The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices. [Roger Wright on stupid people] We're like private member functions [John Theal on R&D] We're figuring out the parent thing as we go though. Kinda like setting up Linux for the first time ya' know... [Nitron]