---
title: "I watched a senior developer delete 4,000 lines of code."
date: "2026-04-14"
language: en
text: full
source: "LinkedIn"
format: "Post"
credit: "By Damir Majer"
contributors:
  - name: "Damir Majer"
    role: author
original: https://www.linkedin.com/feed/update/urn:li:share:7449788901109592064
canonical: https://damirmajer.com/notebook/2026-04-14-i-watched-a-senior-developer-delete-4-000-lines-of-code/
---

# I watched a senior developer delete 4,000 lines of code.

LinkedIn · Post · By Damir Majer · 14 April 2026

It was the best decision he ever made.

He had spent weeks trying to fix a module that kept breaking.\
Every fix created two new problems.

Then he stopped fixing.\
He stepped back and looked at the boundaries.

The module was doing three things that should never have been together.\
Once he separated them, the original bug disappeared.\
Along with 4,000 lines that only existed to manage the complexity of the wrong decision.

Less code.\
Fewer bugs.\
Faster changes.

That is the Architecture Lens.\
Not adding more.\
Seeing what should not be there.

What was your biggest "delete" moment?

#SoftwareCraft

## Sources

- [View the original on LinkedIn](https://www.linkedin.com/feed/update/urn:li:share:7449788901109592064)
