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

I largely use the OO patterns to collect related functionality based on the domain.

Many of the methods on those organizational classes are implemented in a functional manner.

I rely on the class/instance pattern for working with a database. static class methods for actions that work on multiple rows, instance methods for single row interactions.

This works especially well in typescript where I can set private/protected/public

That said, I rarely use inheritance except when it's obvious - no nested class hierarchies or other such traps.

Thanks for the video, I'll give it a watch.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: