Hacker News new | past | comments | ask | show | jobs | submit login

Thanks for the info.

>As for data modeling, I found that inheritance isn't such a useful tool in practice.

True. It can lock you into a particular style and hierarchy. Plus, inheritance just to inherit the methods of the superclass seems like overkill or sometimes might be a wrong approach. Personally I think composition can often be more flexible than inheritance.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: