Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Old code challenge - Today's longest function

Old code challenge - Today's longest function

Scheduled Pinned Locked Moved The Lounge
comquestioncode-reviewlearning
24 Posts 14 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B bryce

    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/publitor

    Our kids book :The Snot Goblin

    A Offline
    A Offline
    Anna Jayne Metcalfe
    wrote on last edited by
    #21

    :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.

    1 Reply Last reply
    0
    • P paulb

      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

      J Offline
      J Offline
      Jorgen Sigvardsson
      wrote on last edited by
      #22

      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[^]

      1 Reply Last reply
      0
      • L l a u r e n

        errrrr i dont understand what ur trying to say? if a function has 2000 lines in the source file between start and end then its 2000 lines long ... nobody is trying to say whether its written well or not??!! sheesh


        "there is no spoon"
        biz stuff about me

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #23

        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?

        1 Reply Last reply
        0
        • B bryce

          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/publitor

          Our kids book :The Snot Goblin

          A Offline
          A Offline
          Atlantys
          wrote on last edited by
          #24

          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]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups