Being a self taught geek there are some things that take time to pick up on, due to not knowing they existed. A couple of years ago i started to enter the world of OOP. It took a little while to get my head around the concept and it seemed that while i was looking for information on the topic there was so much stuff to consider, which added to any confusion i may have had.
Such considerations were things like: N-tier, MVC, Design Patterns. All of this at once on top of trying to concentrate on what OOP was, made for a lot of thinking. Either way after a while of looking through different examples and writing some code the concept of OOP stuck and MVC and N-Tier made a lot more sense.
Up until recently however i still didn’t really put much thought into Design Patterns. I’d read about them, but mainly when i was still trying to grasp what OOP was all about, so Patterns didn’t get too much thought.
Sometimes still i’ll just get on with writing the code and making it work, i don’t mean just hacking something together and hoping it works, but i don’t put as much though into the Design Patterns as maybe i should, or have been led to believe i should. Whatever the case there are a couple of sites that help to understand these concepts if you are stuck thinking about while designing or working on a project.
One of the first sites that i really read about Design Patterns and got a fair bit of MVC knowledge from was phpPatterns by Harry Fuecks. It’s a Wiki that has a lot of good examples of the Design Patterns specific to PHP.
Recently i came across another site dedicated to PHP Patterns, Patterns for PHP is another Wiki that has a lot of good explanations as well as code examples so that you get a bit more info about what the patterns are about as well as seeing the code that goes with it.
Both sites are great resources to have in your bookmarks for when you get stuck, or just want to expand your Pattern knowledge.
Before you get started on those sites however, here’s a good introduction at Dev Articles