Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
taylodl
on April 11, 2024
|
parent
|
context
|
favorite
| on:
If Inheritance is so bad, why does everyone use it...
Prefer IS-A relationships where they make sense, i.e. where you expect the Liskov Substitution Principle to apply. Otherwise use composition. It's really that simple.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: