Use Registry To Remember Objects (So You Don’t Have To)

Tuesday, July 21st, 2009

One 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 Architecture

Where Multiple Levels Of Inheritance Will Kill You

Friday, July 17th, 2009

One 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 Architecture

Superglobals In Classes: Revisited

Monday, July 13th, 2009

Last 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 Architecture

Installing PHP 5.3 On Ubuntu

Sunday, July 5th, 2009

With 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 Architecture

WordPress Caching Slides – Wordcamp Mid-Atlantic

Saturday, May 16th, 2009

Thanks 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
« Older Entries
Newer Entries »
Search:
Copyright © 2008 - 2010. All Rights Reserved.