Live data from Hacker News

You've only added two lines – why did that take two days?

mrlacey.com

191–200 of 522 posts

Re: You've only added two lines – why did that take two days?

#191
post #33

Earlier quoted context omitted.

They PHB should put extra bonuses on kLOC, like 1k$ per 1kLOC, and watch the codebase increase exponentially and since documentation is better than code, double the amount for line of comments.

That's a literal Dilbert strip, 1998-ish, IIRC.

[deleted]

Re: You've only added two lines – why did that take two days?

#192
post #125
post #59

I recall a story about someone at a government contractor who did a major refactoring and removed thousands of lines of code from a project, increasing its performance, only to be told by management that they'd signed a contract that said the company got paid by lines of code delivered, and his improvement would cost them tens of thousands of dollars, so revert the whole thing.

As long as we are counting LOC before compiling, that can be solved easily: if (false) { /* original code stays here, as we are payed by LOC */ } else { /* write your new code here */ }

As long as this is contained to the metrics-metagame branch of the git repo, I am fine with this.

Get 80k commits in, before lunch.

Re: You've only added two lines – why did that take two days?

#193

A variant of this that has driven me to quit more than one job is having a non-technical manager look at a UI prototype and consider that 90% of the solution. "The UI guys had this page ready two months ago! Why doesn't this work yet?" It's even worse when you present a working prototype. They simply don't understand that the backend functionality is what's doing the bulk of the work, and just because you can see som…

It's all correct: 90% takes 5 days and the rest 10% will take 3 months.

Re: You've only added two lines – why did that take two days?

#194

A variant of this that has driven me to quit more than one job is having a non-technical manager look at a UI prototype and consider that 90% of the solution. "The UI guys had this page ready two months ago! Why doesn't this work yet?" It's even worse when you present a working prototype. They simply don't understand that the backend functionality is what's doing the bulk of the work, and just because you can see som…

I sometimes look at small mass-produced plastic items and marvel at how hard it would be to make one from scratch. If you showed me, say, a fluted plastic bottle of wite-out with a screw-on cap, I would have to assume you had a very expensive operation up and running that was already churning these out.

In software we can put a few shapes on a screen in just the right context and people will believe there's an operation as sophisticated as the wite-out bottle factory behind it.

Re: You've only added two lines – why did that take two days?

#195
post #133
post #36

Earlier quoted context omitted.

That’s true. And I guess depending on the job/manager you could replace lines of code with “user-visible changes to app”, etc.

That'll be exploited as well. The number of pointless UI and feature changes would skyrocket without the app actually getting better or gaining meaningful functionality. Meta-metrics might be much more helpful, though harder to come up with, quantify and monitor. Things like defect rates, user reported incidents, user satisfaction, stuff like that. Things that cannot easily be gamed from within the development proces…

I wasn’t suggesting that as a good metric. More like “if isn’t LoC, it’ll be some other terrible metric”

Re: You've only added two lines – why did that take two days?

#196
post #5

Do people actually have fights like this with management at their companies? Not trying to knock the author, but I'm just surprised anyone would actually hear this kind of comment in 2020. I'd think by now any and all metrics tying lines of code to productivity would be long dead.

They don't always make the comment out loud, but you can tell they're thinking it. They absolutely use lines of code metric at my company. I don't miss any chance to tell my manager it's complete bullshit. His answer: "Engineers are supposed to write code, just like construction workers are supposed to build houses."

What if the construction workers just stack all the windows in one corner and pour all the concrete in the other? It must be just as good as building the house properly since they used the same amount of materials. If they just double the amount, the resulting pile of garbage will be twice as good as a functioning house.

Re: You've only added two lines – why did that take two days?

#197
post #57

Earlier quoted context omitted.

1. Being in a position where you have the privilege of being able to pick a good manager is important :)

I remember hearing somewhere that the reason n.1 people leave their job was their manager. Don't know if that's true but the idea's there. So it makes sense that your manager should be a major decision criteria when you pick a job (being able to actually pick a job is also a privilege, but it's fairly common in SWE)

Many companies have a team-selection process that starts after (and is separate from) the actual hiring, e.g. you might not know who the available managers are or if there even are any 'good' ones.

Re: You've only added two lines – why did that take two days?

#198

Earlier quoted context omitted.

They don't always make the comment out loud, but you can tell they're thinking it. They absolutely use lines of code metric at my company. I don't miss any chance to tell my manager it's complete bullshit. His answer: "Engineers are supposed to write code, just like construction workers are supposed to build houses."

Oof, that's a false equivalence. Construction workers have blueprints for how things are supposed to be built. You're (generally) making the blueprint as you go along, based on vague specifications in many cases. This can depend a lot on how your organization designs software, of course.

And... guess who made the drawing (blueprints have not been used in a while)? An engineer. Probably using a vague spec by an architect, too.

And I can assure you, they were not judged on the number of views or pages on their drawing, or on the number of variables in their structural calculations.

Re: You've only added two lines – why did that take two days?

#199

A variant of this that has driven me to quit more than one job is having a non-technical manager look at a UI prototype and consider that 90% of the solution. "The UI guys had this page ready two months ago! Why doesn't this work yet?" It's even worse when you present a working prototype. They simply don't understand that the backend functionality is what's doing the bulk of the work, and just because you can see som…

I literally just had a discussion with a client last week about a feature taking 2months to develop.in my time this week I built the UI, with no backend, and she asked why I quoted two months when it looks like it's already completed.
Post reply on HN