Thread: Lines of code per day.

  1. #16
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    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!

    "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
    near a computer
    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?
    int SomeClass::SomeMethod(int input)
                     return 0;
                 return input;
    //is it the same number as this?
    int SomeClass::SomeMethod(int input)
                       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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

  4. #19
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    I like that analogy so much I think Ill not only use it but take credit for it

  5. #20
    Ethernal Noob
    Join Date
    Nov 2001
    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.

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, 03:10 AM
  2. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04: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, 08:58 PM
  5. << !! Posting Code? Read this First !! >>
    By biosx in forum C++ Programming
    Replies: 1
    Last Post: 03-20-2002, 12:51 PM