Mar 9, 2010
If you've ever needed to write up a PHPUnit test that requires you to check the value of a private property, you can try accessing the private member variables like so:
Or PHP 5.3+ using Reflections:
Great tip from Derick Rethans.
Oct 25, 2009
I love for loops. I use them in ways they probably shouldn't be used for. Here are some few fun ways of using for loops with the caveat that not all these should be used since they are unorthodox and may not be easily readable to others in your team.
For loops for concise conditional logic
Have you ever come across a pattern where you need to set a ...
Oct 10, 2007
The Joel Spolsky keynote was one of the most engaging, interesting and downright hilarious presentations I've heard this year. He really knows how to talk to the crowd. A few suggestions from Joel on creating great software:
Make people happy
Think about emotions
Obsess over aesthetics
Joel is right - developers don't necessarily want to think about beautifying their applications. Developers largely work on the middle-tier and supporting backends, and like everyone, ...
Oct 10, 2007
Second day here at the ZendCon 07, and no session better than Eli White's PHP Features You Didn't Know Existed to start off the day. PHP developers who've been coding for a number of years (some 10 years or more) were scoffing at the idea that Eli would present anything new or 'undiscovered'. But there wasn't a cough in the packed room as Eli presented rarely-used hidden gems ...
Oct 9, 2007
The first day of Zend Con was pretty interesting. I wasn't able to attend all the sessions, but the notable ones were Terry Chay's The Internet is an Ogre: Finding Art in the Software Architecture (hilarious guy), Ben Ramsey's Give Your Site A Boost With memcache, and Eli White's High Performance PHP & MySQL Scaling Techniques (standing room only).
These types of sessions make conferences interesting and a learning ...