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. stupid question ?

stupid question ?

Scheduled Pinned Locked Moved The Lounge
questionc++designalgorithmstutorial
26 Posts 20 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.
  • Z zoid

    Just wandering what every thinks about this and what the industry expects... How many lines of code should a developer (c/c++) write on average each day ? I know that this is a very general and vague statistic ... Someone designing an algorithm won't write many lines of code ... but will spend a lot of time thinking about how to write them ... Still, I am assuming that the average developer will perform all sorts of programming tasks, algorithm design being one of them. So is there a good number ? :confused: Tom.

    N Offline
    N Offline
    Nirav Doshi
    wrote on last edited by
    #21

    ZoiD wrote: How many lines of code should a developer (c/c++) write on average each day ? Our CTO once told us that Motorola has done some internal study and it seems the lines per day of a programmer is about 130 (regardless of the language and logic/algorithm). This is an average calculation for a month's work or so! A similar benchmark is used by some companies for getting to some productivity metrics of their programming team. These lines are supposed to be complete (as per the requirement specs), optimized (no redundant code) & bug-free (as per the requirement specs) lines of code. - Nirav - * Artificial intelligence is no match for natural stupidity! *

    V 1 Reply Last reply
    0
    • Z zoid

      Just wandering what every thinks about this and what the industry expects... How many lines of code should a developer (c/c++) write on average each day ? I know that this is a very general and vague statistic ... Someone designing an algorithm won't write many lines of code ... but will spend a lot of time thinking about how to write them ... Still, I am assuming that the average developer will perform all sorts of programming tasks, algorithm design being one of them. So is there a good number ? :confused: Tom.

      A Offline
      A Offline
      Andrew Torrance
      wrote on last edited by
      #22

      What is a line of code ? I have in the past produced more in 1 hour than I have in one month. I wrote more working code in the month , but the few well thought out lines I generated in an hour had a much bigger business impact. But perhaps my environment is different to yours . If you have zombies coding to a well defined spec then you are comparing their typing speed , not their thinking speed .

      1 Reply Last reply
      0
      • Z zoid

        Just wandering what every thinks about this and what the industry expects... How many lines of code should a developer (c/c++) write on average each day ? I know that this is a very general and vague statistic ... Someone designing an algorithm won't write many lines of code ... but will spend a lot of time thinking about how to write them ... Still, I am assuming that the average developer will perform all sorts of programming tasks, algorithm design being one of them. So is there a good number ? :confused: Tom.

        V Offline
        V Offline
        V 0
        wrote on last edited by
        #23

        ZoiD wrote: How many lines of code should a developer (c/c++) write on average each day ? How about code correction, copying and deleting? If I write 10 lines and I delete 2 of them, is it 8 lines or 12??? :-D ZoiD wrote: So is there a good number ? I think it's 534,68 correct? "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

        1 Reply Last reply
        0
        • N Nirav Doshi

          ZoiD wrote: How many lines of code should a developer (c/c++) write on average each day ? Our CTO once told us that Motorola has done some internal study and it seems the lines per day of a programmer is about 130 (regardless of the language and logic/algorithm). This is an average calculation for a month's work or so! A similar benchmark is used by some companies for getting to some productivity metrics of their programming team. These lines are supposed to be complete (as per the requirement specs), optimized (no redundant code) & bug-free (as per the requirement specs) lines of code. - Nirav - * Artificial intelligence is no match for natural stupidity! *

          V Offline
          V Offline
          V 0
          wrote on last edited by
          #24

          Nirav Doshi wrote: 130 If I have a bigger number does that mean I'm working overtime :-D??? I should get a raise !! :laugh: "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

          1 Reply Last reply
          0
          • Z zoid

            Just wandering what every thinks about this and what the industry expects... How many lines of code should a developer (c/c++) write on average each day ? I know that this is a very general and vague statistic ... Someone designing an algorithm won't write many lines of code ... but will spend a lot of time thinking about how to write them ... Still, I am assuming that the average developer will perform all sorts of programming tasks, algorithm design being one of them. So is there a good number ? :confused: Tom.

            Z Offline
            Z Offline
            zoid
            wrote on last edited by
            #25

            Ok, I see this 'stupid question' seems like it isn't really answerable... The reason I asked is as follows: In an earlier post I mentioned that my company's average was about 10 lines a day... Based on the current project that I am working I calculated that I am writing an **AVERAGE** of 70 lines a day... Based on the discrepency between my output and what I was told the company average was, I was wondering if we need more resources for this project. I know that other developers working on this project are creating a similar average count. I know that as a team we are still slightly behind schedule and definitely behind in documentation, both internal and external... (I am not counting internal docs as lines of code). I wanted to see if the line count could be used as a baseline indicator to show (explain) to management scope of the project and the effort being put in. Thanks for all of your inputs. ps. And yes there are days when I remove 100 lines, but overall the project from start to finish will increase in size so the average line count will always be positive... (unless your position on the team is to inspect other's work)

            1 Reply Last reply
            0
            • Z zoid

              Just wandering what every thinks about this and what the industry expects... How many lines of code should a developer (c/c++) write on average each day ? I know that this is a very general and vague statistic ... Someone designing an algorithm won't write many lines of code ... but will spend a lot of time thinking about how to write them ... Still, I am assuming that the average developer will perform all sorts of programming tasks, algorithm design being one of them. So is there a good number ? :confused: Tom.

              2 Offline
              2 Offline
              224917
              wrote on last edited by
              #26

              4 lines in last 16 hrs of work :confused:
              There is no spoon. suhredayan

              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