Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

right, the roots of the word make it applicable to lots of stuff, poly or many, morph or structure/form.


Arguably it's the strategy pattern. Graphite and Diamond are subclasses of CrystalizationStrategy.


Things could get messy real fast if you need to inherit from both Graphite and Diamond...


Favor composition over inheritance!


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: