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

I like these articles, but I think there are more than enough of them out there and not enough of those that show you how to use composition.

Everyone who has spent enough time with OO and classical inheritance knows the problems, but most have never seen how to convert a mess of classes and inheritance into a more functional approach with composition.

Don't get me wrong, there was good content here, but I was hoping that after the conclusion, the post was going to go into how to use composition as an alternative.



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

Search: