Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
marcosdumay
63 days ago
|
parent
|
context
|
favorite
| on:
When did people favor composition over inheritance...
Django documentation explicitly recommended it for a short while. At a point, the Python community created all kinds of mixins on all kinds of random APIs.
Then people noticed it was bad, and stopped.
nine_k
62 days ago
[–]
Mixins are usually explicitly orthogonal and rarely get subclassed, so diamond-shaped inheritance with mixins seems rare.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Then people noticed it was bad, and stopped.