Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
globular-toast
11 months ago
|
parent
|
context
|
favorite
| on:
OOP is not that bad
A useful rule is not to extend a class you don't own. This is usually taken to mean don't extend a class from a third party library. But it should also mean classes that are shared by multiple developers. In that case, compose, don't inherit.
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: