Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • www.ibm.com PHP OO Article This is a good read about PHP OO Good habits
  • Encapsulate your code - having to change things in many places is a pain
  • Write highly cohesive code by using strongly named grouping patterns - reuse is the goal
  • Make it DRY - If you see it appear a second time then make it so it will only have to be changed in one place (Don't Repeat Yourself)
  • No Avoid tight coupling — i.e. write code with fewer dependencies
  • Handle all possible errors

...