Old code challenge - Today's longest function
-
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]