Oops!

Repeat after me “Favor composition over inheritance.”

  • ?

    • Composition is a technique used in Object Oriented Programming to make two or more objects interact…

  • LOL! Now explain to them that protected/private inheritance in C++ is really composition 😉

  • Unless you’re doing PHP 5, don’t do OO.

    • Indeed! specially if you want your apps to scale well… otherwise PHP4 is good for Kindergarten level OOP

      Disclaimer: despite the above view we have been using OO in PHP since V3 :D