Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In addition to namespaces, there are a number of coding frameworks that contain dozens of design patterns and solutions for many common coding problems and needs. For an in-depth survey of four open source frameworks, I recommend MVC Frameworks for Building PHP Web Applications with Drew Falkman. Another course that I will recommend as a supplement and extension to the design patterns chapter is Foundations of Programming: Object-Oriented Design with Simon Allardice here in the Lynda.com Online Training Library. Offline, there are two books that are broadly considered as canonical sources of software design strategies. Design Patterns: Elements of Reusable Object-Oriented Software, published by Addison-Wesley, and Code Complete, the 2nd edition, from Microsoft Press.
Finally, you may have noticed that one section the demonstration was not completed, the save method of the Address class. There are many different ways to approach this problem. You could write a simple SQL query, and just write the contents to a table within that method. But does that scale? I recommend researching Gateway patterns along with Object-relational mapping as a starting point.
Get unlimited access to all courses for just $25/month.Become a member