Contents
The Neverending Story: When Management Only Looks at Numbers—The Solution (Part 2)

Chapter 4: Boardroom Theater

Scene 1: Planning meeting

Manager: “How long will the feature take?”
Developer: “Implementation alone? Three days.”
Manager: “Great! We ship in three days!”
Developer: “But I also need...”
Manager: “THREE DAYS!”

Reality:
- Implementation: 3 days ✅
- Tests: 2 days (manager: “Unnecessary!”)
- Code review: 1 day (manager: “Why?!”)
- Refactoring: 2 days (manager: “WHAT?!”)
- Documentation: 1 day (manager: “No time!”)

Needed: 9 days; approved: 3 days; result: 6 days of technical debt

Scene 2: Retrospective

Manager: “Why did velocity fall from 50 to 20 points?”
Developer: “Because we spend 60% of our time fixing old bugs...”
Manager: “Why so many bugs?!”
Developer: “Because we did not write tests...”
Manager: “Why didn't you write tests?!”
Developer: “Because you said there was no time...”
Manager: “That is not an excuse!”
Developer: *silently considers life choices*

Scene 3: Production incident at 3 a.m.

*The phone rings at 3 a.m.*
Manager: “Production is down! FIX IT!”
Developer, half asleep: “Which module?”
Manager: “I DON'T KNOW! THE BROKEN ONE!”
Developer: “All right, debugging...”
*Two hours later*
Developer: “Found it. The module we quick-fixed six months ago...”
Manager: “Why didn't you do it properly?!”
Developer: “You said there was no time to refactor...”
Manager: “That was six months ago! You should have fixed it!”
Developer: “When? You keep assigning new features...”
Manager: “NO TIME FOR EXCUSES!”
*At 5 a.m. the developer updates LinkedIn*

Chapter 5: Attempts at Conversation (a Tragicomedy)

Attempt 1: The gentle approach

Developer: “I have an architecture improvement.”
Manager: “How many features will it deliver?”
Developer: “None, but it will speed up future development.”
Manager: “So zero features?”
Developer: “Yes, but...”
Manager: “Next agenda item.”

Attempt 2: Business language

Developer: “Refactoring will reduce time-to-market by 30%.”
Manager: “Interesting! How long?”
Developer: “Two weeks.”
Manager: “TWO WEEKS?! That is four features!”
Developer: “But long-term we save...”
Manager: “Long-term? I need features NOW!”

Attempt 3: Scare tactics

Developer: “If we do not refactor, the system will fail.”
Manager: “When?”
Developer: “I don't know exactly... maybe a year?”
Manager: “We will worry about it in a year!”
Developer: “But then it will be ten times more expensive...”
Manager: “It won't be my problem; I'll be on another project.”
Developer: *freezes in shock*

Attempt 4: Guerrilla refactoring

Developer: “I implemented feature X.”
// Secretly refactored 30% of the code
Manager: “Why did it take a week instead of three days?”
Developer: “It was more complex than expected...”
Manager: “Better estimates next time!”
Developer: “Sure...” *mission accomplished*

Chapter 6: The Price of “We Don't Have Time”

A real e-commerce example:

typescript
// Year 0: "Quick solution"
class ProductService {
  getProduct(id) {
    return database.query(`SELECT * FROM products WHERE id = ${id}`);
    // SQL injection is waiting for its moment
  }
}

// Year 1: "Add a feature quickly!"
class ProductService {
  getProduct(id) { /* copy-paste */ }
  getProductWithReviews(id) { /* copy-paste */ }
  getProductWithRelated(id) { /* copy-paste */ }
  // ... 50 similar methods
}

// Year 3: Security audit
Auditor: "You have 50 SQL injection vulnerabilities"
Manager: "FIX THEM ALL!"
Developer: "That is 50 methods to rewrite..."
Manager: "How long will it take?!"
Developer: "A month"
Manager: "A MONTH?!"

// If we had done it properly in year 0
// The fix would have taken one week
// It actually took one month
// Cost of “no time”: 3× more work

The snowball effect

Year 0: Skip one week of refactoring → save 1 week
Year 1: Each feature takes 20% longer → lose 2 weeks
Year 2: Each feature takes 50% longer → lose 5 weeks
Year 3: System collapses, emergency refactoring → lose 8 weeks
Total: 1 week saved, 15 weeks lost. Return: -1400%.

Chapter 7: How to Break the Cycle

Strategy 1: A 20% tax on each sprint

typescript
const zdravySprint = {
  kapacita: 100,
  features: 70,
  refaktoring: 20,  // Mandatory 20% for technical debt
  bugy: 10
};

// Velocity over time WITH refactoring:
// Sprint 1: 70 points
// Sprint 2: 72 points (refactoring helps)
// Sprint 3: 75 points
// Sprint 4: 80 points

// WITHOUT refactoring:
// Sprint 1: 80 points
// Sprint 2: 75 points (debt slows progress)
// Sprint 3: 65 points
// Sprint 4: 50 points (collapse)

Strategy 2: Hidden refactoring

Manager: “Feature X, three days.” Developer: “Sure!”
// Days 1–2: Refactor foundations
// Day 3 morning: Implement feature (3 hours)
// Day 3 afternoon: Tests and documentation
Manager: “Done already?!” Developer: “Yes, easier than expected.”
// Next feature
Manager: “Feature Y, three days.” Developer: “Done in one day.”
Manager: “You are getting better!” Developer: “Yes...” (refactoring paid off)

Strategy 3: Translate into business language

❌ Developer language: “We need to refactor the legacy module.”
✅ Business language: “A two-week investment means 30% faster development permanently.”
❌ Developer language: “Technical debt slows us down.”
✅ Business language: “Each feature now costs twice what it did a year ago.”
❌ Developer language: “The code is spaghetti.”
✅ Business language: “Critical outage probability: 60%; estimated loss per incident: €50,000;
annual risk: €180,000; refactoring cost: €20,000; return: 9× investment.”

Chapter 8: Stories with a Happy Ending

My own project (a real story)

Initial state:
- 144 tables (copy-paste hell), 500,000 lines of code
- 2 features per sprint, 15 bugs per month

After two weeks of refactoring:
- 1 configurable table, 50,000 lines of code (90% reduction!)
- 8 features per sprint (4× faster!), 2 bugs per month (7.5× fewer!)

Manager: “Why didn't we do this sooner?!”
Me: *silence, because I would say something I would regret*

Epilogue: The End of the Neverending Story

Plot twist: The story CAN end!

typescript
function ukonciNekonecnyPribeh() {
  // Step 1: Acknowledge the problem
  console.log("We have technical debt. That is reality.");

  // Step 2: Measure it
  const dlh = zmerajTechnickyDlh();
  console.log(`Debt: ${dlh.hodiny} hours of work`);
  console.log(`Annual cost: ${dlh.naklady} €`);

  // Step 3: Sell the solution
  const roi = vypocitajNavratnost();
  console.log(`Investment: ${roi.cena} €`);
  console.log(`Return: ${roi.zisk} €`);

  // Step 4: Allocate time
  console.log("20% of every sprint = refactoring");

  // Step 5: Track improvement
  sledujVelocitu();
  sledujPocetBugov();

  return "End of the never-ending story";
}

Conclusion: Quantity ≠ Quality

What management loves: Many features, high velocity, completed milestones and good-looking numbers. ✅

Reality: Buggy features 🐛, declining velocity 📉, delayed milestones ⏰ and exploding technical debt 💣.

A better approach:

Fewer features + high quality = sustainable velocity
More features + low quality = a never-ending story

Remember:

“More haste, less speed.”

“Give me six hours to chop down a tree and I will spend the first four sharpening the axe.” — Abraham Lincoln

68% of IT projects are “marginal” because management looked only at quantity. If we invested 20% of time in quality, we would be among the 29% of successful projects.

You have a choice:

🔴 A never-ending story: keep fixing forever.

🟢 A story with an ending: invest in foundations.

Which story do you want to live?


Written by a Solution Architect who survived the never-ending story on several projects, refactored 144 tables into one configurable component and learned to convince management that quality > quantity.

P.S. If your project looks like a never-ending story, it is not too late. Start with the 20% rule. Your future self will thank you.

P.P.S. Managers: please read this. Developers: send it to your managers. Anonymously. 😅

All articles