PHPundamentals Series: A Background on Statics (Part 1 on Statics)
Just beyond reading the title, you’ve more than likely come to this article as the curious yet uninformed, the mad and raving lunatic, or as an enlightened one. Static class members (from here on...
View ArticleCompiling Gearman (or anything) for Zend Server CE on Snow Leopard
The first thing you need to know about Mac OS.X Snow Leopard all Mac’s and Macbook Pro’s is that this hardware is 64 bit capable. This may not mean you are running a 64 bit kernel, it simply means that...
View ArticleException Best Practices in PHP 5.3
Every new feature added to the PHP runtime creates an exponential number of ways developers can use and abuse that new feature-set. However, it’s not until developers have had that chance that some...
View ArticleComposite Rowsets For Many-To-Many Relationships Via Zend_Db_Table
One of the hardest problems to solve when developing an ORM of any complexity is in deciding how to handle the retrieval of rows that satisfy a many-to-many relationship, also known as a M:N...
View ArticlePHP Component and Library API Design Overview
There’s been lots of change in the PHP community over the past few years. PHP now has namespaces. More PHP developers are using an IDE. More PHP developers are pulling inspiration from the Java,...
View ArticleLearning About Dependency Injection and PHP
Over the past few years, there are a few concepts and programming patterns that have muscled their way into the hearts and minds of PHP developers from other languages and programming communities....
View ArticleAutoloading (Revisited)
Upon the arrival of PHP 5.0, the ability to autoload classes was introduced. At the time, autoloading was such a new feature, it was hardly adopted. As such, many applications being ported from PHP4 to...
View ArticlePHP Constructor Best Practices And The Prototype Pattern
If your knowledge of constructors ends with “the place where I put my object initialization code,” read on. While this is mostly what a constructor is, the way a developer crafts their class...
View ArticleDI, DiC, & Service Locator Redux
To DiC, or not to DiC: that has seemed to be the question in PHP for the last few years. Most people generally agree that injecting dependencies is the right thing to do®. For those writing a...
View Article“Fix My Streets! I Pay My Taxes”, But Does It Matter That You Pay Your Taxes?
Surely you’ve seen the signs by now. “Fix My Streets! I Pay My Taxes,” they read. It’s a shame it is an argument that has to be made, but it is one that is easily and often made. You see, ’round here,...
View Article