Skip to content

Programming Quote by Steve McConnell

“once gotos are introduced, they spread through the code like termites through a rotting house.” quote by Steve McConnell
Download Open image
““once gotos are introduced, they spread through the code like termites through a rotting house.””

Steve McConnell

About This Quote

Source Book: Code Complete, 1993

Uncontrolled use of goto statements leads to code that is hard to understand and maintain, spreading bugs like termites.

In simple terms: Gotos make code messy and fragile.

Key Takeaway

Avoid using goto; prefer structured control flow.

Themes

software quality maintainability control flow

Mood

cautious analytical

Type

technical educational

When to use this quote

  • legacy code refactoring
  • debugging sessions
  • code reviews
  • teaching programming fundamentals

Key Concepts

structured programming technical debt code readability

Questions to Reflect On

  • When does a goto truly simplify logic?
  • What alternatives can replace a goto?
A Different Perspective

Gotos can sometimes simplify error handling in low‑level code, but alternatives exist.

2.9 out of 5 (7 ratings)

More by Steve McConnell

Explore all 57 Steve McConnell quotes

More Programming quotes

Browse all 6,477 Programming quotes