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. Line Counts

Line Counts

Scheduled Pinned Locked Moved The Lounge
help
32 Posts 19 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.
  • realJSOPR realJSOP

    After recovering from the mental whammy imposed by a 5-million line error, I wondered how many lines of code our current project was. The final count is 1,061,156. this number includes comments and blank lines because I consider them to be important parts of the coding process (comments tell a story about the code, and blank lines are organizational in nature, and therefore require a modicum of thought on the part of the programmer). BTW, there are just two developers assigned to this code base, and the line count only includes the desktop apps (there is a dashboard and a web portal as well).

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

    C Offline
    C Offline
    Chris Losinger
    wrote on last edited by
    #5

    John Simmons / outlaw programmer wrote:

    After recovering from the mental whammy imposed by a 5-million line error,

    is this an ACA reference ?

    image processing toolkits | batch image processing

    1 Reply Last reply
    0
    • realJSOPR realJSOP

      After recovering from the mental whammy imposed by a 5-million line error, I wondered how many lines of code our current project was. The final count is 1,061,156. this number includes comments and blank lines because I consider them to be important parts of the coding process (comments tell a story about the code, and blank lines are organizational in nature, and therefore require a modicum of thought on the part of the programmer). BTW, there are just two developers assigned to this code base, and the line count only includes the desktop apps (there is a dashboard and a web portal as well).

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #6

      On a good day I used to be able to type 100WPM. Not to say my day is all typing but if I wanted to churn out mounds of Government approved code that would be about a months to do a million lines. Really easy if you include comments generated by a tool and auto generated CRUD code. Add another developer and a million lines isn't so difficult to achieve. The true genius is doing the same thing in 80,000 readable lines : ) (Not implying anything just a related statement)

      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost "All users always want Excel" --Ennis Lynch

      P 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Hopefully they are logged, rather than swallowed? He asked, fully assuming the complete opposite... :sigh:

        The only instant messaging I do involves my middle finger. English doesn't borrow from other languages. English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.

        R Offline
        R Offline
        Rob Philpott
        wrote on last edited by
        #7

        I'd argue that thousands of exceptions in a log file isn't much better then silently swallowing them. It's interesting that interview questions often revolve around try/catch/finally. This bit is easy, its determining the flow of execution under errored conditions that is the tricky bit.

        Regards, Rob Philpott.

        1 Reply Last reply
        0
        • realJSOPR realJSOP

          After recovering from the mental whammy imposed by a 5-million line error, I wondered how many lines of code our current project was. The final count is 1,061,156. this number includes comments and blank lines because I consider them to be important parts of the coding process (comments tell a story about the code, and blank lines are organizational in nature, and therefore require a modicum of thought on the part of the programmer). BTW, there are just two developers assigned to this code base, and the line count only includes the desktop apps (there is a dashboard and a web portal as well).

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #8

          John Simmons / outlaw programmer wrote:

          The final count is 1,061,156

          After clicking the 'show disassembly' button? :)

          "Real men drive manual transmission" - Rajesh.

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            You realize there is a bug on line 768,321? :laugh:

            The only instant messaging I do involves my middle finger. English doesn't borrow from other languages. English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.

            P Offline
            P Offline
            Plamen Dragiyski
            wrote on last edited by
            #9

            Imagine a brace mismatch at line 249403. :omg: X|

            G 1 Reply Last reply
            0
            • E Ennis Ray Lynch Jr

              On a good day I used to be able to type 100WPM. Not to say my day is all typing but if I wanted to churn out mounds of Government approved code that would be about a months to do a million lines. Really easy if you include comments generated by a tool and auto generated CRUD code. Add another developer and a million lines isn't so difficult to achieve. The true genius is doing the same thing in 80,000 readable lines : ) (Not implying anything just a related statement)

              Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost "All users always want Excel" --Ennis Lynch

              P Offline
              P Offline
              Plamen Dragiyski
              wrote on last edited by
              #10

              Well, write in Java, document getter and setters, done - application do nothing with more than 200,000 lines of code.

              S 1 Reply Last reply
              0
              • P Plamen Dragiyski

                Imagine a brace mismatch at line 249403. :omg: X|

                G Offline
                G Offline
                Gary R Wheeler
                wrote on last edited by
                #11

                That's why God made compilers.

                Software Zen: delete this;

                M 1 Reply Last reply
                0
                • realJSOPR realJSOP

                  After recovering from the mental whammy imposed by a 5-million line error, I wondered how many lines of code our current project was. The final count is 1,061,156. this number includes comments and blank lines because I consider them to be important parts of the coding process (comments tell a story about the code, and blank lines are organizational in nature, and therefore require a modicum of thought on the part of the programmer). BTW, there are just two developers assigned to this code base, and the line count only includes the desktop apps (there is a dashboard and a web portal as well).

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                  G Offline
                  G Offline
                  Gary R Wheeler
                  wrote on last edited by
                  #12

                  We did a line count 3-4 years ago. We had 800K to 1.7M lines per product across five products, with some of the code shared between products, managed by a team of six. We've never placed much stock in lines of code, but it was a metric we needed for an IRS evaluation of our R&D program. They originally wanted a paper listing of everything we'd written over the preceding five year period. Snicker. We computed that printing the listing for all of the code would require a fairly standard roll of paper, 40 inches in diameter. It would have taken a little over an hour to print on one of our machines (we make commercial ink-jet printing systems). We were sorely tempted to do it, just so we could deliver this monstrosity to the IRS office. As it was, we delivered a spindle of ~100 DVD's plus a directory listing on paper of each disc which took up an entire case of letter paper. Bastards.

                  Software Zen: delete this;

                  S 1 Reply Last reply
                  0
                  • P Plamen Dragiyski

                    Well, write in Java, document getter and setters, done - application do nothing with more than 200,000 lines of code.

                    S Offline
                    S Offline
                    Super Lloyd
                    wrote on last edited by
                    #13

                    write in C#, even shorter! ;P

                    My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                    1 Reply Last reply
                    0
                    • OriginalGriffO OriginalGriff

                      You realize there is a bug on line 768,321? :laugh:

                      The only instant messaging I do involves my middle finger. English doesn't borrow from other languages. English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.

                      S Offline
                      S Offline
                      Simon ORiordan from UK
                      wrote on last edited by
                      #14

                      And it's a white space bug, they're almost impossible to fix.

                      1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Hopefully they are logged, rather than swallowed? He asked, fully assuming the complete opposite... :sigh:

                        The only instant messaging I do involves my middle finger. English doesn't borrow from other languages. English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.

                        D Offline
                        D Offline
                        dan sh
                        wrote on last edited by
                        #15

                        Logged? Why? Isn't empty catch blocks a good practice any more?

                        "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

                        S 1 Reply Last reply
                        0
                        • D dan sh

                          Logged? Why? Isn't empty catch blocks a good practice any more?

                          "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

                          S Offline
                          S Offline
                          SortaCore
                          wrote on last edited by
                          #16

                          Good practice is a messagebox that says, "The program was going to crash, but the programmer [insert name here] was too awesome to let that happen." Not to mention lots of smiley faces to show how much of a good thing it is.

                          D G 2 Replies Last reply
                          0
                          • G Gary R Wheeler

                            We did a line count 3-4 years ago. We had 800K to 1.7M lines per product across five products, with some of the code shared between products, managed by a team of six. We've never placed much stock in lines of code, but it was a metric we needed for an IRS evaluation of our R&D program. They originally wanted a paper listing of everything we'd written over the preceding five year period. Snicker. We computed that printing the listing for all of the code would require a fairly standard roll of paper, 40 inches in diameter. It would have taken a little over an hour to print on one of our machines (we make commercial ink-jet printing systems). We were sorely tempted to do it, just so we could deliver this monstrosity to the IRS office. As it was, we delivered a spindle of ~100 DVD's plus a directory listing on paper of each disc which took up an entire case of letter paper. Bastards.

                            Software Zen: delete this;

                            S Offline
                            S Offline
                            SortaCore
                            wrote on last edited by
                            #17

                            I wouldn't like to be the guy that has to review it, either way.

                            M 1 Reply Last reply
                            0
                            • S SortaCore

                              Good practice is a messagebox that says, "The program was going to crash, but the programmer [insert name here] was too awesome to let that happen." Not to mention lots of smiley faces to show how much of a good thing it is.

                              D Offline
                              D Offline
                              dan sh
                              wrote on last edited by
                              #18

                              Don't forget the cat picture. It always works. Or may be a link to pr0n website. Users tend forget all issues if we do that.

                              "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

                              S 1 Reply Last reply
                              0
                              • D dan sh

                                Don't forget the cat picture. It always works. Or may be a link to pr0n website. Users tend forget all issues if we do that.

                                "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

                                S Offline
                                S Offline
                                SortaCore
                                wrote on last edited by
                                #19

                                An animated cat gif, too. Don't forget to make the messageboxes recursive, in case the animation has an error. Moar Kittiezz!!!1!

                                d@nish wrote:

                                Or may be a link to pr0n website. Users tend forget all issues if we do that.

                                Obligatory Dilbert comic[^] :laugh:

                                1 Reply Last reply
                                0
                                • G Gary R Wheeler

                                  That's why God made compilers.

                                  Software Zen: delete this;

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

                                  God made compilers to imagine brace mismatches? I think we're really screwed...

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

                                  G 1 Reply Last reply
                                  0
                                  • S SortaCore

                                    I wouldn't like to be the guy that has to review it, either way.

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

                                    SortaCore wrote:

                                    I wouldn't like to be the guy that has to review it, either way.

                                    Are you kidding? We're talking about tax inspectors! They live for this stuff -- I'd bet the guy assigned to it cancelled his holidays, he was having so much fun.

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

                                    S G 2 Replies Last reply
                                    0
                                    • M Mark_Wallace

                                      SortaCore wrote:

                                      I wouldn't like to be the guy that has to review it, either way.

                                      Are you kidding? We're talking about tax inspectors! They live for this stuff -- I'd bet the guy assigned to it cancelled his holidays, he was having so much fun.

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

                                      S Offline
                                      S Offline
                                      SortaCore
                                      wrote on last edited by
                                      #22

                                      He's probably still going through it, patiently correcting bugs and standardising it. He just needs a second project like that and he's set for life.

                                      1 Reply Last reply
                                      0
                                      • M Mark_Wallace

                                        SortaCore wrote:

                                        I wouldn't like to be the guy that has to review it, either way.

                                        Are you kidding? We're talking about tax inspectors! They live for this stuff -- I'd bet the guy assigned to it cancelled his holidays, he was having so much fun.

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

                                        G Offline
                                        G Offline
                                        Gary Wheeler
                                        wrote on last edited by
                                        #23

                                        I heard third-hand that they delivered the DVD's and the directory listing to the IRS, the IRS guy essentially checked a box on a form, and they dumped the whole mess in the secure shredder while our lawyer watched. We could have delivered a spindle of blank DVD's and a box of blank paper, and saved me a couple hours and our technician a couple weeks work (he did the DVD duplication and the directory listings).

                                        Software Zen: delete this;

                                        M D R 3 Replies Last reply
                                        0
                                        • G Gary Wheeler

                                          I heard third-hand that they delivered the DVD's and the directory listing to the IRS, the IRS guy essentially checked a box on a form, and they dumped the whole mess in the secure shredder while our lawyer watched. We could have delivered a spindle of blank DVD's and a box of blank paper, and saved me a couple hours and our technician a couple weeks work (he did the DVD duplication and the directory listings).

                                          Software Zen: delete this;

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

                                          Your tax dollars at work for you.

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

                                          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