>_
new2coding
browse
topics
about
random
browse/
search
All
AI
Building software
Computers
Computer science
Databases
Infrastructure
Mobile
Networks
Programming languages
Security
The web
Tools
1 result
software-design/composition-vs-inheritance-why-a-toy-duck-shouldn-t-learn-to-fly.md
Composition vs inheritance: why a toy duck shouldn't learn to fly
A rubber duck that learns to fly is a classic sign that inheritance, the "is a" way of sharing code, has been stretched too far. Every…
5 min read · 30 Oct