I've literally been both devs in that comment for the same code, twice. As in, wrote code, scrapped it for being unmaintainable and wrote new simpler easier to maintain, then had to scrap it and write new code again.
Thoroughly field-tested code with all the weird exceptions, edge cases, and other discovered requirements covered: "This code is so complicated! It's not even worth refactoring, so let's just scrap it and start over."
Rewritten code: "It used to frobnicate instead of mogrifying when you click the 'download' button after sorting the table by reverse priority order during a month with two full moons. The customer needed that functionality yesterday, get it fixed and pushed to prod ASAP."
Several top-priority bug-fixes and tens of thousands of man-hours later: All the weird edge cases, exceptions, and unspoken requirements have been rediscovered and implemented. Go to 1.
Occasionally you can genuinely find abstractions which make expressing and maintaining those requirements easier. Designing a high-quality rule system can be difficult, but often well-worth it, imo
3. Several top-priority bug-fixes and tens of thousands of man-hours later: All the weird edge cases, exceptions, and unspoken requirements have been rediscovered and implemented. Go to 1.
You forgot that these top-priority bug-fixes (and feature-requests) are top-priority while coding but then this part of the software is never used once by the customer. 7 months later you are asked how the functionality works only to figure out that it has never worked in the first place because the SQL query is containing a syntax error
Nah, the bug reports wouldn't exist if the functionality was never used by the customer. (You think we're spending money on QA when refactoring is "too expensive"? Ha!)
No, it's used roughly once every couple of years by the manager of the customer's purchasing department, who misunderstood the requirements relayed to them by the manager of the people who actually use the product.
In my (limited) experience, software fails in the requirements gathering phases more than anywhere else. It's really a communication / process issue more than anything else.
We can, but it gets complicated when other people are working on the same thing. Even more so when the goal is software that needs to meet requirements of people who aren't the programmers.
yes, i heard that roughly 50% of software development projects fail. humans suck at software development but the people on the business side have no alternative to us anymore >:)
Ironically Cobol was meant to solve that exact problem, letting businesses build their own software in-house in a programming language specifically designed for end-user development of business software. Not really sure if it actually accomplished that goal, but Cobol is still in use 60 years later. It's even object-oriented now, lol
Yeah but that's really hard to quantify. Overwatch is an example of a failed software project. It was going to be a call of duty / halo type single player game with multiplayer.
They ended up scrapping the project and trying to salvage the assets in a multiplayer game.
There are so many failed projects where bits and pieces and ideas are brought into successful production it's hard to draw a hard line between success and failure.
Also, this is true for all product development, not just software.
We are but not all humans on a project have the same mission.
Some want their work to go faster by automating a task. Some want to automate that task as it was asked. Others want to automate that task but do more or do less than asked. Others want to automate that task but do it different so that it doesn't work as it was asked. Others live on a cloud of theories and setup an architecture that turns your project of 3 months into 3 years. Others invent extra tasks and non-sense so that they can bill multitudes of time as would be required. Others are consultants and their own firm has a golden partnership with vendor X so their agenda is to make sure the use and purchase of software from vendor X unnecessarily becomes integrated into processes and that their client becomes dependent on it; no matter if it was in their interest which it most often was not.
That's how software projects but also projects in all other industries fail. People rowing in different directions.
1.4k
u/bam13302 Nov 25 '22
I've literally been both devs in that comment for the same code, twice. As in, wrote code, scrapped it for being unmaintainable and wrote new simpler easier to maintain, then had to scrap it and write new code again.