Programming Quote by Steve McConnell
““once gotos are introduced, they spread through the code like termites through a rotting house.””
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.
Avoid using goto; prefer structured control flow.
Themes
Mood
Type
When to use this quote
- legacy code refactoring
- debugging sessions
- code reviews
- teaching programming fundamentals
Key Concepts
Questions to Reflect On
- When does a goto truly simplify logic?
- What alternatives can replace a goto?
Gotos can sometimes simplify error handling in low‑level code, but alternatives exist.