Clean code, is it really worth it? A story of monsters, heroes and victories
summary
Claims that poor code costs ~$2 trillion a year in the US and Sonar telemetry showing ~1.8 billion issues with the top 10 totaling >500 million drive concrete fixes: use Clean As You Code and run sonar lint in the IDE, gate merges with SonarQube/SonarCloud, and prioritize new-code quality not wholesale rewrites. AI helpers (Copilot acceptance ~40%, correctness ~20–29% for suggestions) often introduce maintainability or compilation bugs and raise cognitive complexity; favor MapStruct, Java 12+ collectors/records, and cognitive-complexity checks.
AI-written summary · about
chapters (13)
- 0:00Introduction and welcome
- 1:08What is clean code?
- 7:38Introducing the Porky monster
- 12:12Cost of poor quality code
- 16:58AI as a sidekick for coding
- 24:03Clean code principles and goals
- 26:13Top 10 code issues detected
- 30:14Hints to fight Porky
- 33:48Java version tips and tricks
- 38:46Tools to enforce clean code
- 42:25Focus on new code only
- 45:18Conclusions and final thoughts
- 47:49Q&A session
