Lines of code per day.

This is a discussion on Lines of code per day. within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Interesting story. Our lecturer in sofware design told us just two days ago that the most common cause for failed ...

  1. #16
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Interesting story. Our lecturer in sofware design told us just two days ago that the most common cause for failed software projects is that the sponsor (of whatever kind - monetary, company politics, ...) pulled out.

    Anyway, I think the LoC company is pretty much an urban legend. I imagine that early translation secretaries (before computer time was cheap enough that compilers were worth it) were measured by lines of code they could translate - just as today's compilers' speed is measured in LoC/min. Then there was IBM, which was rumoured to have this system. But I'm not sure about that. After that, any company that would be stupid enough to introduce such a system would remove it within a month - or go bankrupt. It just doesn't work.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #17
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    I have never worked at a company that measured performance in lines of code.
    Do lines in a design/implementation/scope document count?
    If I did work for such a company (which would not be for long) I can easily make 10s of lines of code into 100s of lines of code (doing the same thing).

    If your boss is planning to introduce it, ask them what _exactly_ is a line of code? That is, make them understand exactly what they are actually asking for AND to put that into a formal code development guidelines document.
    Do they take away lines that don't work or never get called?
    I think they will then give up.....

    ie how many lines is this?
    Code:
    int SomeClass::SomeMethod(int input)
    {
                if(input<minInput)
                {
                     return 0;
                }
                else 
                {
                      input++;
                }
                 return input;
    }
    //is it the same number as this?
    int SomeClass::SomeMethod(int input)
    {
               if(input>=minInput) 
                       return input++;
               return 0;
    }
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #18
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,671
    Following some DIY this week, here's an analogy.

    LoC per day is like measuring your performance at applying paint in terms of area covered per unit time. Painting a wall is easy and productive (apparently), but the intricate detailed work around the edges of the windows seems to do very little, but is far more important to get right.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #19
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    I like that analogy so much I think Ill not only use it but take credit for it
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  5. #20
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Quote Originally Posted by abachler View Post
    I like that analogy so much I think Ill not only use it but take credit for it
    Salem supports Open Source, and he is evil if he restricts you from taking credit for that quote.

    Of Course I'll be taking credit for that quote now.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. scanf skips lines of code in DOS using Dev-C++ and Windows XP
    By jenovanomusuko in forum C Programming
    Replies: 9
    Last Post: 12-21-2008, 02:10 AM
  2. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  3. << !! Posting Code? Read this First !! >>
    By kermi3 in forum Windows Programming
    Replies: 0
    Last Post: 10-14-2002, 01:29 PM
  4. Code to find the day type of day in the year?
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 04-01-2002, 07:58 PM
  5. << !! Posting Code? Read this First !! >>
    By biosx in forum C++ Programming
    Replies: 1
    Last Post: 03-20-2002, 11:51 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21