Programming Quote by Anonymous
““Writing code that requires subclasses to send super adds an additional dependency; avoid this if you can.””
About This Quote
Source Tech Talk: Software Architecture, 2020
Advises against designing code that forces subclasses to call super methods, as it creates tight coupling.
In simple terms: Avoid super calls in subclass design.
Minimize inheritance dependencies.
Themes
Mood
Type
When to use this quote
- code reviews
- API design
- refactoring
- team onboarding
Key Concepts
Questions to Reflect On
- Is inheritance the best tool here?
- What alternatives exist?
Sometimes super calls are necessary for correct behavior.