How do programmers count lines of code

  • (2 Pages)
  • +
  • 1
  • 2

23 Replies - 6741 Views - Last Post: 08 November 2012 - 05:06 PM

#16 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 521
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: How do programmers count lines of code

Posted 09 June 2009 - 05:34 PM

View PostPsychoCoder, on 9 Jun, 2009 - 09:25 AM, said:

Moved to Corner Cubical :)


AGH!!!!! :crazy: ;)

I only use line numbers as a reference point. I don't really shoot for a specific line count as a project limit/goal, because it simply works differently for everyone. Comments can take space, I write code spaced out nicely (for readability)...many many factors to tie in here. So I just finish the project, then I use the line count as a reference when I decide to increase performance or something, after I've added all of my comments and such.

This post has been edited by Locke: 09 June 2009 - 05:35 PM

Was This Post Helpful? 0
  • +
  • -

#17 ShaneK  Icon User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: How do programmers count lines of code

Posted 09 June 2009 - 09:37 PM

For me, in PHP, the only reason the line number matters is for debugging purpose (For example: Fatal error: function so_and_so() not defined in c:/this/is/my/path/file.php on line 2) it tells me exactly where to look to find my error, and PHP counts everything. Empty lines, coded lines, comment lines...(and jEdit counts those for me ^_^)

Yours,
Shane~
Was This Post Helpful? 0
  • +
  • -

#18 onesmartguy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-July 09

Re: How do programmers count lines of code

Posted 10 July 2009 - 01:30 PM

Counting code is not a good metric for grading. A good programmer refractors his code making it more usable through out the project. I other words you can have 300 lines of code that does the same thing that 10,000 of code and even performs better.

With that being said. If you not counting for grading or braggin purposes it is pretty crazy how much code one can push out.
Was This Post Helpful? 0
  • +
  • -

#19 paperclipmuffin  Icon User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Re: How do programmers count lines of code

Posted 13 July 2009 - 02:19 AM

View PostNykc, on 9 Jun, 2009 - 07:15 AM, said:

My IDE/Text editor has line numbers built into it.


+1 :^:
Was This Post Helpful? 0
  • +
  • -

#20 NeoTifa  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2794
  • View blog
  • Posts: 15,904
  • Joined: 24-September 08

Re: How do programmers count lines of code

Posted 13 July 2009 - 06:36 AM

Who cares really?

Its quality not quantity :D
Was This Post Helpful? 0
  • +
  • -

#21 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5675
  • View blog
  • Posts: 12,192
  • Joined: 02-June 10

Re: How do programmers count lines of code

Posted 08 November 2012 - 02:12 PM

As everyone else has commented - line of code is pretty meaningless. You can have 5,000 LOC if you write really poorly and have lots of if...else...else...else...else...else.

Meeting deadlines is what we get paid by. Additional optional features by deadline can mean bonuses.

So ask yourself: How many FEATURES can I complete in a day? Or if your company sets milestones that works too.

Milestone 1: Layout the object interaction logic
Milestone 2: Throw together a quick proof of concept & R&D interface
Milestone 3: Get all the user preferences saving & restoring from serialized file
Milestone 4: Add functionality to read a barcode from a snapped photograph
blah blah.
Was This Post Helpful? 0
  • +
  • -

#22 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2271
  • View blog
  • Posts: 9,499
  • Joined: 29-May 08

Re: How do programmers count lines of code

Posted 08 November 2012 - 02:22 PM

Quote

As everyone else has commented
yeah 3 years ago.

This post has been edited by AdamSpeight2008: 08 November 2012 - 02:22 PM

Was This Post Helpful? 2
  • +
  • -

#23 lucky3  Icon User is offline

  • Friend lucky3 As IHelpable
  • member icon

Reputation: 231
  • View blog
  • Posts: 769
  • Joined: 19-October 11

Re: How do programmers count lines of code

Posted 08 November 2012 - 03:03 PM

http://www.dreaminco...-necro-posting/
I couldn't resist to.....
Was This Post Helpful? 1
  • +
  • -

#24 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5675
  • View blog
  • Posts: 12,192
  • Joined: 02-June 10

Re: How do programmers count lines of code

Posted 08 November 2012 - 05:06 PM

Hmmm... Not sure how I stumbled on such an old post. I usually couldn't give a crap about anything more than 72 hours old. No idea now how I stumbled on this one.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2