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

This model is pretty mainstream these days and the best commercial implementation I've seen has to be in the Unity3D engine. It's almost entirely componentised, and writing totally generic 'work-anywhere' components is liberating.

One thing I dont think the article mentioned is that polymorphic approaches are also often a lot slower, and this is crucial when working on platform hardware, especially the more constrained stuff.

All that said, some of the comments are correct; inheritence does have a place, but it should be used sparingly.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: