Brandon Savage has some great tips regarding coding OOP:
- “Use Objects. Lots of Objects”
- “Use Interfaces To Make APIs Predictable”
- Use Dependency Injection”
- “Composition Over Inheritance”
- “Create Loosely Coupled Classes”
As you can see it’s absolutely not rocket science nor these are new invetions: these rules simply help to avoid typical OOP pitfalls and keep your applications well structured.