Skip to content

Code Quote by Robert C. Martin

“Few practices are as odious as commenting-out code. Don’t do this!” quote by Robert C. Martin
Download Open image
““Few practices are as odious as commenting-out code. Don’t do this!””

Robert C. Martin

About This Quote

Source Book: Clean Code by Robert C. Martin, 2008

Commenting out code is a harmful habit that obscures intent and creates technical debt.

In simple terms: Avoid commenting out code; it’s bad practice.

Key Takeaway

Write clean, maintainable code.

Themes

software development best practices technical debt

Mood

critical educational

Type

technical philosophical

When to use this quote

  • legacy code
  • code reviews

Key Concepts

code hygiene refactoring team collaboration

Questions to Reflect On

  • Why do developers comment out code?
  • What alternatives exist?
A Different Perspective

Commenting out may be a quick fix but leads to long‑term problems.

2.6 out of 5 (9 ratings)

More by Robert C. Martin

Explore all 34 Robert C. Martin quotes

More Code quotes

Browse all 1,561 Code quotes