blog’s amazing Rotating Header Image

Five Tips To Make Good Object-Oriented Code Better – Brandon Savage

Brandon Savage has some great tips regarding coding OOP:

  1. “Use Objects. Lots of Objects”
  2. “Use Interfaces To Make APIs Predictable”
  3. Use Dependency Injection”
  4. “Composition Over Inheritance”
  5. “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.

Bookmark and Share

Leave a Reply