Use Registry To Remember Objects (So You Don’t Have To)
Tuesday, July 21st, 2009One of the biggest challenges in OOP programming with PHP is the ability to pass around objects and let other objects use them. This challenge can be solved with careful design, however. Here we will discuss the registry pattern, not a member of the GoF’s original patterns but still an important pattern nonetheless.
5:30 pm | Comment (31) | Print | Categories: Best Practices, PHP 5, System ArchitectureWhere Multiple Levels Of Inheritance Will Kill You
Friday, July 17th, 2009One of the best features of PHP’s object model (and really all object models) is the concept of inheritance – that is, derived classes inherit the members and methods of their parents. This is a fantastic way to further encapsulate and abstract your code because it means you can define some base functionality and then [...]
8:00 am | Comment (20) | Print | Categories: Best Practices, PHP 5, System ArchitectureSuperglobals In Classes: Revisited
Monday, July 13th, 2009Last December, I wrote about the use of PHP superglobals inside of classes (link here). I asserted at the time that superglobals inside of a class violated some basic rules on what a class was supposed to do. Today, I am revisiting that discussion.
6:00 pm | Comment (11) | Print | Categories: Best Practices, PHP 5, System ArchitectureInstalling PHP 5.3 On Ubuntu
Sunday, July 5th, 2009With the release of PHP 5.3 to the world, I wanted to be one of the first to try it. The problem is that the typical package managers for Ubuntu won’t include PHP 5.3 for some time – perhaps as long as a year. This is a problem, since I really want to try PHP’s [...]
5:40 pm | Comment (58) | Print | Categories: PHP 5, System ArchitectureWordPress Caching Slides – Wordcamp Mid-Atlantic
Saturday, May 16th, 2009Thanks everyone for a great Wordcamp Mid-Atlantic and for attending WordPress Caching! Here are the slides so you can download them for your own resource.
4:14 pm | Comment (1) | Print | Categories: Best Practices, System Architecture
Web developer, amateur photographer, traveller, and amatuer chef. Expect to find me writing code, visiting new places or trying a new recipe. I live with my wife in Olney, Maryland. Follow Me On Twitter!- New Rockville PHP Group
- Excited About PHP Again
- Rethinking The Technical Resume
- We The State, Not We The People
- Working To Defeat the Stop Online Piracy Act
- Diversifying This Blog
- What do you want the web to be?
- Why I Love Being An Engineer
- Validation Blind Spots Hurt Real Users
- Finding A Job Without A Recruiter
