News for hackers. Stuff that matters.
Re:Software effort estimation is mostly fake research by keyle on Thursday June 15, 2023 @11:07PM (#36350632)
It's not fake research. It's actually quite an established science in the 24 years I've been doing it.

Take your first guess, double it, double it again if the stakeholder is a poser, add 20% per developer less experience than you, subtract 10% for the features you're going to essentially copy paste, add 15% for sick leave (browsing HN) and then double it for every question you have that are unresolved and divide it by the room temperature multiplied by the amount of people with mechanical keyboards.

That gives you roughly the right estimate for any job, until the next sprint.

Re:Software effort estimation is mostly fake research by cardy31 on Thursday June 15, 2023 @11:37PM (#36350837)
In this vein, my manager doesn’t appreciate when they ask for an estimate and I say “If I knew how to accurately estimate software projects I would be making millions as a consultant. But I don’t so I’m here”
Re:Software effort estimation is mostly fake research by catchnear4321 on Friday June 16, 2023 @07:11AM (#36354635)
likely because of your assumption that high paid consultants make accurate estimates.

they do get paid more.

Re:Software effort estimation is mostly fake research by cardy31 on Friday June 16, 2023 @07:31AM (#36354800)
No my assumption isn’t that consultants make good estimates. It is that nobody in our entire industry knows how to accurately estimate how long a software project will take, so I would be a highly sought-after rare commodity in our industry.
Re:Software effort estimation is mostly fake research by drunkenmagician on Thursday June 15, 2023 @11:10PM (#36350657)
Wait! this is my method, and its patented! You need a licence sir ;)
Re:Software effort estimation is mostly fake research by eftychis on Thursday June 15, 2023 @11:57PM (#36351021)
The real problem is not with estimation but with the management denial.

I was asked to estimate a project I owned as a “green” lad. I offered 6 months with a real detailed plan and up to a year with some extras. Based on past rates we had etc. I even did some statistical modeling. They disagreed. They decided to alter the approach, that the principal engineer had suggested and “it would take 2-3 months.”

Two years later I learned they were still working to finish it.

Another example: they wanted a Byzantine Fault Tolerance rewrite along with the networking layer. I said we need 6 months. They said we know how it should be done in 1-2 months. I finished my stuff and moved on — they picked couple of people to work on the rest that had said 1-2 months. It took them a year to reach a point they could test it.

Now why did I say 6 above? Because that is a project I have done multiple times, I can do everything in my sleep and the delay beyond all other fundamentals is random interruptions. Did that matter? No.

When top head works with wishful thinking estimates are ways to find scapegoats; nothing more.

Re:Software effort estimation is mostly fake research by constantcrying on Friday June 16, 2023 @12:41AM (#36351361)
Your first mistake was misunderstanding the relationship with management.

Time estimations are bargaining, you ask for something and then get a counter offer from management, they don't care that the counter offer from them is delusional. The bargaining is the point, the less time you bargain for the more stressful the development can become. Don't estimate what it should take, estimate what it could take and bargain from there.

Re:Software effort estimation is mostly fake research by frant-hartm on Friday June 16, 2023 @01:45AM (#36351929)
Get out of the company if it has this kind of management.
Re:Software effort estimation is mostly fake research by thaneross on Friday June 16, 2023 @02:36AM (#36352364)
I hate to say it but from my 20+ years in the industry, this is the norm.
Re:Software effort estimation is mostly fake research by wickedsickeune on Friday June 16, 2023 @04:52AM (#36353486)
You are absolutely correct, but there are groups within companies that don't work like that. Finding them is the hard part :|
Re:Software effort estimation is mostly fake research by DoingIsLearning on Friday June 16, 2023 @08:06AM (#36355171)
I think it mostly correlates with how technical PMs are.

People that were fairly technical prior to deciding to move to PM roles, those you can actually explain the context and reason with.

PMs that are more biased towards Business/Marketing are big on C Level networking etc., those are the ones that feel they are doing a good job if they try to bleed a stone with deadlines. They are adversarial like GP mentions and not someone you can reason with.

Re:Software effort estimation is mostly fake research by jsight on Friday June 16, 2023 @09:50AM (#36356568)
It is more common than not, but it is still best to avoid such places.
Re:Software effort estimation is mostly fake research by dekleinewolf on Friday June 16, 2023 @05:53AM (#36353994)
I'm a manager and when I ask my engineers for an estimate, I always, always increase it for my own purposes.
Re:Software effort estimation is mostly fake research by DoingIsLearning on Friday June 16, 2023 @08:09AM (#36355214)
Indeed, management is very much about shielding the team, and getting rid of roadblocks.

These are the kind of managers I will go the extra mile for. Got my back I got your back and make sure you shine.

Re:Software effort estimation is mostly fake research by lloeki on Friday June 16, 2023 @07:52AM (#36354994)
The other part is that management/PMs usually care about deadlines, not work effort (duration in man-hours, story points, or whatever).

Allow me to indulge in a fictional narrative:

You are handed "high level" (a.k.a rooted in the fuzzy non-technical alternate reality that is product management) requirements resulting in known unknowns and unknown unknowns. You're junior and naive and you put real tech-borne effort numbers in front of each task; or you're experienced and you put O(t) numbers on the first ones and random but high numbers on the second ones.

Anyway, the estimates end up landing past the desired deadline, management mutters TLAs such as "OKR" and whatnot, you'll have to justify why it doesn't fit, so you communicate work effort.

You are summoned into a retroplanning meeting to cull out stuff based on work effort so that it fits management's expected deadline, and try to pretend you're doing agile when it's all waterfall Gantt in disguise.

Project starts. Implicitly man-hours become wall-clock-hours, irrespective of other tasks such as CI/tooling/dependency breakage, code hygiene, or customer support escalations; your effort estimates became t{project start}+effort == deadline. You are now held accountable for the latter based on you communicating the former.

Time is now the scarcest of resources, you do your best, conjure magic, work extra hours, take shortcuts, and make it to the deadline, sacrificing body and soul. In a cloudy spreadsheet checkboxes have been checked, management is happy. Deployment is smooth but soon corner case bugs and escalations start trickling in. Management is either oblivious or not so happy after all.

Time for a new quarter to start. You know issues borne out of past quarter will rear their ugly head, and there's much tech debt to repay before interests quickly accrue towards tech bankruptcy. You're junior and swear to yourself to not make the same mistake, and you start inflating numbers; you're experienced and you realise the whole number dance is a sham as they don't matter anyway, but you still are required to do the dance because that's how the game is played, so you turn Scotty and just throw outrageously big numbers up in the air and just make sure the deadline is not too ludicrous, still hanging to the hope hoping that someone, somewhere, has seen the light of reason and built a company around it, and maybe you could go to these greener pastures; you're very experienced and you realise the only winning move is not to play, so you quit (not the job, the _industry_) and move to a remote plot of land with literal green pastures and a small cabin mountainside to raise sheep, or cut wood, or whatever, where the smallest time unit is the measurement error of eyeballing the zenith-relative angular position of a giant fireball 8.3 light-minutes away.

Re:Software effort estimation is mostly fake research by regularfry on Friday June 16, 2023 @09:46AM (#36356519)
The correct response to that sort of bargaining attempt is "What are we dropping from the project scope?"
Re:Software effort estimation is mostly fake research by hinkley on Friday June 16, 2023 @12:32AM (#36351284)
The tell is that as soon as they don’t like how things are going they flip from calling them estimates to commitments.

Also if someone’s estimates aren’t perfect, that’s something you can use to justify withholding salary. The game is fixed. It’s just a good deal less fixed for us than for the average person.

Re:Software effort estimation is mostly fake research by goto11 on Friday June 16, 2023 @01:27AM (#36351767)
Withholding salary? How is that legal?
Re:Software effort estimation is mostly fake research by hinkley on Friday June 16, 2023 @01:41AM (#36351891)
Well your responsibilities warrant a 20% raise but since your estimates are bad and your <bullshit other reason> was not 5 out of five, we’re giving you a 6% raise. Better luck next year right?
Re:Software effort estimation is mostly fake research by senttoschool on Friday June 16, 2023 @12:29AM (#36351252)
I don't disagree with you but I think people also need to understand that management often pick the team that provides lower estimates because team members will have to work harder to deliver it.

Management might not be so dumb. If someone said 2 months and you say 6 months, they might go with the person who said 2 months but will accept 5 months secretly.

Re:Software effort estimation is mostly fake research by hinkley on Friday June 16, 2023 @12:34AM (#36351301)
I think at least a lot of them are rudely surprised.

If it’s a conspiracy not everyone is in on it, at least. There’s more an element of believing your own PR in many cases.

Re:Software effort estimation is mostly fake research by jahewson on Friday June 16, 2023 @01:55AM (#36352024)
In my experience the 2 month version is so bad it’s still being hotfixed in production in month 8.
Re:Software effort estimation is mostly fake research by MrPatan on Friday June 16, 2023 @02:48AM (#36352454)
That's a success story.

The 2 month version could be sold at all, the 6 month one can't, so it's not worth considering its technical merits.

Then the client/stakeholder buys in, the sunk cost, well, sinks in, and things get fixed. Success!

Re:Software effort estimation is mostly fake research by smileysteve on Friday June 16, 2023 @07:48AM (#36354965)
The 2 month version experiences scaling issues at a 20% rollout, or takes 20s for a database query before returning a page.

In 6 months you need a better scaling version while the current version is creating cascading database failures; it's got terabytes of denormalized data that is out of sync and a 2nd team can't migrate the data in 12 months.

In 12 months, you find 5 other teams copied the 2 month solution.

In 2 years, you have 0 devs left that can solve the problem and a 1000% grown dev team that is great at the 2 month solution.

You ask the teams why they don't use the scalable solution and they say, "do we have any examples of that, the unscalable way is our convention"

Re:Software effort estimation is mostly fake research by ngc248 on Friday June 16, 2023 @03:23AM (#36352733)
>>>. The real problem is not with estimation but with the management denial.

^^ This is the truth. All estimation processes in any company are just ceremony. Management already has a deadline fixed. They will make you agree to their deadlines, even though whatever process stipulated by them says otherwise.

Re:Software effort estimation is mostly fake research by ohthehugemanate on Friday June 16, 2023 @04:02AM (#36353052)
Not EVERY company. Just the ones that don't understand how estimation works... and unfortunately in software, that's still a very very common case. In more established kinds of engineering it works differently... which gives me hope that eventually our industry will understand too.
Re:Software effort estimation is mostly fake research by robertlagrant on Friday June 16, 2023 @05:17AM (#36353690)
> Management already has a deadline fixed

The real problem is saying "yes we can do it all in that timeline" instead of saying "That's fine, but we won't get to everything. We will work with you to prioritise the most important things to get done in that time."

I know it's painful, but just hold that line. It's not lying or negotiating or padding; in fact it may be the only true statement you can say.

If a civil engineer were building a bridge, and couldn't do it safely in the budget and timeline, they'd say so, and the project manager would nod and diligently write that down. We have a more subservient relationship with project managers in software because we choose to.

Re:Software effort estimation is mostly fake research by peteradio on Friday June 16, 2023 @12:00PM (#36358882)
You have to get them to take that perspective. What happens is "we want all this stuff how long is it going to take" and then they fight that number down while not answering any clarifying questions. So you have to sumo wrestle a bunch of assholes twice your weight into even framing the context correctly before the conversation you recommend can even take place.
Re:Software effort estimation is mostly fake research by smsm42 on Wednesday June 21, 2023 @01:55AM (#36414906)
> They will make you agree to their deadlines, even though whatever process stipulated by them says otherwise.

I'm not sure how. I mean, if I know it takes X time to do something, what would make me to commit to Y<<X time when I know it will fail and will be made my fault? If they want to record it as a deadline, so be it, but if it's an impossible deadline I'd make every effort to be on record that I said it from the start that it's impossible.

Re:Software effort estimation is mostly fake research by AnimalMuppet on Friday June 16, 2023 @08:43AM (#36355641)
Management denial is not universal. It can't be - companies that have realistic management should out-compete companies where management is politics and unreality.

The problem is that management unreality can take a decade or several to destroy a place. But when you see that kind of management, know that that's the road they're on. That's your cue to start looking for somewhere with management that at least tries to live in reality.

Re:Software effort estimation is mostly fake research by sleeplessworld on Friday June 16, 2023 @05:37PM (#36364259)
I hope you are right. I have never been in or seen a workplace where management is not playing the 'get the order at (nearly) all costs - let others handle the problems' game. Again, I hope I am wrong. But these type of companies seem to outcompete all others. The only unicorn in a decade in my geographical area, is a company that plays this game very very well in the IT sector. As far as I have seen, they play a variation called 'the customer takes the problems (and the full financial impact). Due to building a good set of core competencies, that the competition mismanaged over years, they can get away with this strategy.
Re:Software effort estimation is mostly fake research by etherealG on Monday June 19, 2023 @03:27AM (#36388285)
You’re forgetting that in companies with the management properties you say are bad, those properties may cause actual value to be delivered faster, even if it’s at long term cost. That value can accrue, gain interest, and that company can be more successful than the one with the management properties you say are bad.

I think you’re conflating success of a company with the pleasure of its employees. These 2 factors are usually (not always) opposing not correlated.

Re:Software effort estimation is mostly fake research by jsight on Friday June 16, 2023 @09:49AM (#36356556)
This also makes fruitful grounds for scapegoating. 1.5 years into the "6 month" project, they can reorganize because of the catastrophic failure.

Then the new organization can say it wasn't because they misestimated, it was just the poor organizational structure before.

Obviously this new structure would have achieved the result in the time allotted.

Re:Software effort estimation is mostly fake research by Farox on Friday June 16, 2023 @12:30AM (#36351265)
Many, many moons ago I asked my mentor how to estimate. He told me that you should figure out what it feels like, then double it and then take it to the next higher time unit.

"hmm, adding that button probably takes about an hour"... 2 days is about right.

Almost 30 years later I still find this to be true. Truer than I like.

Re:Software effort estimation is mostly fake research by Phlogi on Friday June 16, 2023 @12:50AM (#36351447)
So 1 Month becomes 2 years? I don't think that's a good rule.
Re:Software effort estimation is mostly fake research by dmacedo on Friday June 16, 2023 @01:05AM (#36351572)
Not that I've used this extensively, but months would likely increase to quarters.

And if you're estimating something to the lengths of months, you're already into project management territory size, rather than broken down to development/delivery sizes... The amount of unknown unknowns and other uncertainty certainly warrant happily estimating years length, surely.

Also #NoEstimates (=

Re:Software effort estimation is mostly fake research by lrem on Friday June 16, 2023 @02:36AM (#36352357)
1 month of your own concentrated work? 2 quarters easily, because at this scale:

- You’ll get a bunch stakeholders each requesting a different format of progress reporting.

- You’ll get pulled into dealing with a small but disruptive emergency that requires unique expertise.

- A dependency will change in a way incompatible with your work in progress.

- You’ll hand off the half done project to the new hire.

- You’ll need to rediscover what the project is about after the new hire hands it back.

Re:Software effort estimation is mostly fake research by hinkley on Friday June 16, 2023 @12:55AM (#36351482)
It is somewhat a self correcting system.

You don’t want them interacting with you too often for one hour tasks. You want to train them to lower resolutions slices. And you want to round up small ones to do refactoring as well.

Eventually they get a sense of just right. It’s never perfect but they are estimating before they even ask. Whic if we’re honest, they’ve done anyway and they’re hoping we will agree, absolving them of the responsibility.

Re:Software effort estimation is mostly fake research by OJFord on Friday June 16, 2023 @07:09AM (#36354613)
> Almost 30 years later I still find this to be true. Truer than I like.

This happened 15 months ago?

Re:Software effort estimation is mostly fake research by adastra22 on Friday June 16, 2023 @12:34AM (#36351303)
you forgot to multiply by pi
Re:Software effort estimation is mostly fake research by MathMonkeyMan on Friday June 16, 2023 @04:33AM (#36353309)
These are CGS units, not SI.
Re:Software effort estimation is mostly fake research by nsoonhui on Friday June 16, 2023 @12:57AM (#36351505)
I can't tell you are serious or satire. If you are serious that kind of estimate is as good as useless because the projects most likely won't be profitable. Can you imagine what will a property developer think if he is informed that his project is going to take at least twice as long to complete?
Re:Software effort estimation is mostly fake research by keyle on Friday June 16, 2023 @01:07AM (#36351593)
It was a satire. My go to formula is actually

    (A * B) / C + 2^D + (rand(4, -4) * E) / (0.5 * F) 
    
[A] Time if I did it all by myself

[B] I have no idea what I'm doing ratio

[C] I totally have done this before

[D] Amount of weekly WTF per code review

[E] That stakeholder couldn't hold a stake

[F] Likely hood of it changing by next week

Re:Software effort estimation is mostly fake research by TeMPOraL on Friday June 16, 2023 @04:36AM (#36353340)
> Can you imagine what will a property developer think if he is informed that his project is going to take at least twice as long to complete?

Property developers aren't doing R&D jobs. Most of software development is a multiplayer life sciences R&D, because even if you're not developing new technology, the combination of your chosen stack, target market, stakeholder personalities and management policies, makes your project a one-off job in an unexplored environment.

Re:Software effort estimation is mostly fake research by prionic6 on Friday June 16, 2023 @01:44AM (#36351916)
I just use the 80 20 rule:

- estimate at least 20 days

- multiply by 20

Re:Software effort estimation is mostly fake research by jmorenoamor on Friday June 16, 2023 @01:57AM (#36352034)
Wait, are you estimating without taking into account the moon phase?

Good luck with that.

Re:Software effort estimation is mostly fake research by TeMPOraL on Friday June 16, 2023 @04:38AM (#36353349)
Well, they said it's a rough estimate.
Re:Software effort estimation is mostly fake research by trashtester on Friday June 16, 2023 @02:03AM (#36352079)
Hmm, so with 0 mechanical keyboards, it's zero?
Re:Software effort estimation is mostly fake research by keyle on Friday June 16, 2023 @02:12AM (#36352164)
Sure, there is always that no-code solution!
Re:Software effort estimation is mostly fake research by not_your_vase on Friday June 16, 2023 @02:12AM (#36352159)

  + c constant.
Everyone forgets the constant all the time.
Re:Software effort estimation is mostly fake research by someweirdperson on Friday June 16, 2023 @02:21AM (#36352226)
Also some exponent, anything from ^2 to ^x, especially if multiple persons are involved.
Re:Software effort estimation is mostly fake research by NoMoreNicksLeft on Friday June 16, 2023 @02:43AM (#36352415)
Yes, but how many story points is that keyle? Please be sure to use Fibonacci sequence numbers. If you don't give the ticket story points, we can't track the velocity of the sprint, and all our planning will fall apart.

I know you like to complain alot about how your cubicle roommate doesn't understand basic control structures and the difference between floating point and integers, but he, unlike you, always adds story points to the tickets. That's why he's on fast track to lead senior developer. He knows what's important. I'm trying to help you learn what's important too, but you've got to want to be helped.

Re:Software effort estimation is mostly fake research by keyle on Friday June 16, 2023 @11:08PM (#36366866)
Hah! Great question. And we don't use Fibonacci. We use the true answer to everything in the universe

    42 seconds
    42 minutes
    42 hours
    42 days
    42 weeks
    42 months and my resignation
Re:Software effort estimation is mostly fake research by mtlmtlmtlmtl on Friday June 16, 2023 @04:58AM (#36353541)
You forgot to factor in the Pointless Meeting Frequency Coefficient F(U) = (#MBAs in company)^(# of middle management levels)
Re:Software effort estimation is mostly fake research by kleene_op on Friday June 16, 2023 @06:41AM (#36354372)
> multiplied by the amount of people with mechanical keyboards

With negative weights for keyboards with cherry mx blue.

Re:Software effort estimation is mostly fake research by TuringNYC on Friday June 16, 2023 @08:44AM (#36355654)
I've found if you give realistic estimates, some contracting firm comes in, offers to do it in half the time, grabs the project and then takes 2x longer. Finding stakeholders competent enough to understand this pattern is important. If not, you might as well throw out any estimate and also take longer.
Re:Software effort estimation is mostly fake research by davely on Friday June 16, 2023 @10:47AM (#36357438)
Hah!

One of the knocks against me in my last performance review was that I had poor time estimation for completing tasks.

I asked my lead for help in getting better at this and they were basically a real life version of the Neil deGrasse Tyson hand waving GIF.

Re:Software effort estimation is mostly fake research by KineticLensman on Friday June 16, 2023 @12:15PM (#36359136)
You forgot "round it up the next order of magnitude"
Re:Software effort estimation is mostly fake research by smif on Saturday June 17, 2023 @02:45AM (#36367916)
Don't forget to multiply by the square root of 2 (management overhead coefficient). Also note that this is an irrational number so it has a subtle jab at management built-in.
Re:Software effort estimation is mostly fake research by yibers on Saturday June 17, 2023 @09:38AM (#36370053)
what if the room temperature is 0?