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. How long is too long?

How long is too long?

Scheduled Pinned Locked Moved The Lounge
cssquestion
3 Posts 3 Posters 0 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.
  • P Offline
    P Offline
    PaulowniaK
    wrote on last edited by
    #1

    The second hand code I'm having to tidy up has numerous member functions that are over 1,000 lines long! Granted some of these have extensive comments in them, but still! How is it that nobody else finds these functions close to impossible to interpret? Oh, I know, I'm just too dumb. That's why I think it's normal to have functions that have less than 30 lines and do what its declaration says it will and reads like plain English. :mad:

    Almost, but not quite, entirely unlike... me...

    M A 2 Replies Last reply
    0
    • P PaulowniaK

      The second hand code I'm having to tidy up has numerous member functions that are over 1,000 lines long! Granted some of these have extensive comments in them, but still! How is it that nobody else finds these functions close to impossible to interpret? Oh, I know, I'm just too dumb. That's why I think it's normal to have functions that have less than 30 lines and do what its declaration says it will and reads like plain English. :mad:

      Almost, but not quite, entirely unlike... me...

      M Offline
      M Offline
      Mark_Wallace
      wrote on last edited by
      #2

      If browsing through code is a voyage, is that Toolong Latrek?

      I wanna be a eunuchs developer! Pass me a bread knife!

      1 Reply Last reply
      0
      • P PaulowniaK

        The second hand code I'm having to tidy up has numerous member functions that are over 1,000 lines long! Granted some of these have extensive comments in them, but still! How is it that nobody else finds these functions close to impossible to interpret? Oh, I know, I'm just too dumb. That's why I think it's normal to have functions that have less than 30 lines and do what its declaration says it will and reads like plain English. :mad:

        Almost, but not quite, entirely unlike... me...

        A Offline
        A Offline
        Amarnath S
        wrote on last edited by
        #3

        I had once seen a C++ function which was about 800 lines long, consisting of only one "return true" statement at the very end, and all other lines of code commented out. In effect, all the effort spent in writing the 799 commented lines went wasted because they were finally commented out.

        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