After learning much about implementing classes in PHP, I went back and encapsulated many related methods into their own classes. I now have a database class that simplifies a lot of my logic. Since the database is at the core of my web application, every page broke as a result. The handing “log4php” class that I made the other day was a great help in tracking down problems that I missed. The infrastructure of this project is really starting to make things look very simple and clean. Perhaps I should look into unit testing against the PHP code as well. Not all errors can be caught with my logging class if the PHP code doesn’t compile.
posted by Dedric Mauriac on Woodbridge using a blogHUD : [blogHUD permalink]