News for hackers. Stuff that matters.
Re:Ask HN: How much code do you write a day? by smt88 on Monday May 08, 2017 @11:31AM (#14292399)
You wouldn't know this because you're new to the industry, but lines of code is considered a very poor metric for productivity. If you encounter an employer who is tracking your productivity by lines of code, that's a really bad sign, and you should try to avoid working with such a company.

The same is true of number of issues closed. Some issues are short and quick, and some issues take a whole day. Sometimes an issue will seem small and turn out to be large. Handling these things is part of good management.

I personally measure people more on how many bugs they don't produce. A single bug can cause losses of revenue that are equivalent to weeks of a developer's time. Bug-free code is so much more cost-effective than fast code.

Re:Ask HN: How much code do you write a day? by tehlike on Tuesday May 09, 2017 @03:20AM (#14298285)
Err, I will disagree on this. It all depends on where you work at.

You can have a bugfree code, but release it in 6 months. Or you can have a code that creates outages once per month, but release it in 3 months (figure of speech, 6 months is optimistic for some projects).

By trying to optimize for 0 bugs, you are losing on the 3 month of business opportunity of high revenue. At FANG scale, that's a lot of money.

Disclaimer: G employee, but this is my own opinion etc.

Re:Ask HN: How much code do you write a day? by smt88 on Tuesday May 09, 2017 @05:21AM (#14298645)
I think you've intentionally taken what I said to an extreme that makes it absurd. Of course I wasn't saying people should comb through a program until it's bug-free before releasing it.

That said, no one (in their right mind) intentionally releases buggy code. They may release incomplete or under-tested code, of course. But that's not what I'm talking about.

I'm saying that when someone feels like they're "done" (in a reasonable amount of time), some people will end up with more bugs than others. If the trade-off is 3 more hours of work for 1 fewer bug, that's an incredible economy.

And, of course, no metric is perfect or comprehensive. But "bugs per hour" is much better than LoC per hour.

Re:Ask HN: How much code do you write a day? by tedmiston on Tuesday May 09, 2017 @10:52AM (#14300500)
FANG = Facebook, Amazon, Netflix, Google
Re:Ask HN: How much code do you write a day? by aaronarduino on Monday May 08, 2017 @12:10PM (#14292876)
Thanks, your answer has shed some light on what would be expected. I am glad that the industry does not base productivity on LOC. I also, now know some red flags.
Re:Ask HN: How much code do you write a day? by tehlike on Tuesday May 09, 2017 @03:28AM (#14298315)
What matter is not the number of lines of code you write. IT's what value you create, how much revenue you generate, or help generate. You can have the worst code, and still make hundreds of millions of dollars. At the end of the day, for a business, that's what matters. Once you are coming to the scale of the code (modularity or lack thereof, etc), you can always rewrite.

Not directly about development, but this should be somewhat of a rule of thumb in general: https://www.slideshare.net/dmc500hats/best-strategy-is-speed...

Time is important. More important than you think.

Re:Ask HN: How much code do you write a day? by aaronarduino on Tuesday May 09, 2017 @12:05PM (#14301163)
The value created for the company seems to be the best way to track productivity. It seems that how accurate the chosen metric for the value created is the key thing to watch out for.