Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jxramos
on Jan 22, 2021
|
parent
|
context
|
favorite
| on:
Atomic resolution video of salt crystals forming i...
right, the roots of the word make it applicable to lots of stuff, poly or many, morph or structure/form.
adrianmonk
on Jan 22, 2021
[–]
Arguably it's the strategy pattern. Graphite and Diamond are subclasses of CrystalizationStrategy.
iainmerrick
on Jan 23, 2021
|
parent
[–]
Things could get messy real fast if you need to inherit from both Graphite and Diamond...
chrisweekly
on Jan 23, 2021
|
root
|
parent
|
next
[–]
Favor composition over inheritance!
frumiousirc
on Jan 23, 2021
|
root
|
parent
|
prev
[–]
Yes, the diamond inheritance pattern is a classic OO problem. :D
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: