Skip to content

Code Quote by Douglas McIlroy

“The real hero of programming is the one who writes negative code,” quote by Douglas McIlroy
Download Open image
“The real hero of programming is the one who writes negative code,”

Douglas McIlroy

About This Quote

Source Book: The Art of Computer Programming (reference), null;null

The best programmers write code that anticipates and handles errors gracefully.

In simple terms: Good code anticipates errors.

Key Takeaway

Write defensive code.

Themes

programming defensive coding quality reliability

Mood

pragmatic analytical

Type

technical instructional

When to use this quote

  • debugging
  • system design
  • maintenance
  • testing

Key Concepts

error handling robustness software engineering

Questions to Reflect On

  • How do you balance safety and simplicity?
  • When is defensive code unnecessary?
A Different Perspective

Over‑engineering can reduce readability.

4.7 out of 5 (3 ratings)

More by Douglas McIlroy

Explore all 5 Douglas McIlroy quotes

More Code quotes

Browse all 1,561 Code quotes