LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-11-2006, 09:28 AM   #16
pasteNoctem
Member
 
Registered: Apr 2006
Location: Athens Greece
Distribution: Kubuntu
Posts: 35

Rep: Reputation: 15

I think those numbers ware measured in some kind of company.. where you have an idea of what you want to make, in difference to when you are making it yourself.

And another suggestion , not absolutely, for what he meant might be of "flawless code" if something that limits to it exists.
 
Old 12-11-2006, 10:27 AM   #17
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
FWIW - I work in a very large company, with all the procedures, etc.

1. Managers love metrics. Not because they necessarily have meaning, but more because they provide a way to report on something (programming) that is difficult to report on to senior management. LOC is one of those metrics.

2. I wrote 2400 lines of ksh script last month - comments and blank lines discounted. There are months when I write less than 100 lines of script.

At the moment, I'm working on C - wrote and tested about 400 lines last week.
However, 10 lines of shell script can "stand for" several hundred lines of C. LOC is not a metric with meaning in this context.

3. Poor code. For example, C code that repeats itself a lot and violates the "Don't repeat yourself" dictum will have a very high LOC compared to properly constructed code. The cost to the company to maintain cruddy code like that is very high. A programmer may have to read through thousands of lines of code, making the same correction over and over - even if he decides to pull it out into one function. Here, LOC produces counterintuitive results.
 
Old 12-12-2006, 05:55 AM   #18
pasteNoctem
Member
 
Registered: Apr 2006
Location: Athens Greece
Distribution: Kubuntu
Posts: 35

Rep: Reputation: 15
That's a part big part of the point i was trying to make.... I think, though, that you could make it clearer :P
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Keeping Lines Open jeremy LinuxAnswers Discussion 1 08-14-2006 01:33 PM
adding code lines Qwo Linux From Scratch 17 05-24-2006 02:58 AM
LXer: Ten BY TEN. India's IT & BPO Outsourcing. LXer Syndicated Linux News 0 12-26-2005 03:31 PM
How to count how many lines of code my project is? The_Nerd Programming 4 08-30-2004 08:26 PM
Add lines of code to files from command line robeb Linux - General 2 06-12-2002 03:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration