Cool DateTime Functions In PHP 5.3
Monday, January 25th, 2010Over time, the PHP DateTime object has become one of the best objects available to PHP developers. This object has grown since early PHP 5 into a robust class that has the ability to do lots of great things.
Recently, I was exploring some of the functionality provided by the DateTime object as of PHP 5.3 [...]
Five (Good) Lessons The Government Teaches Us About Object-Oriented Programming
Wednesday, December 2nd, 2009As Benjamin Franklin once famously said, “the only two things that are certain in life are death and taxes.” His point, while political, has a good perspective on one of life’s ever-persistent truths: the fact that governments exist in every country, and, largely, they have some of the same benefits and drawbacks everywhere.
However, the ubiquity [...]
Exceptional PHP: Nesting Exceptions In PHP
Thursday, November 12th, 2009In the last two entries we have talked about the concept of layer abstraction: that is, that exceptions should not be allowed to pass out of one layer and into another. So, when an exception is raised in the database layer it should be caught in the controller. But how do we go about making [...]
1:00 am | Comment (1) | Print | Categories: Best Practices, Object-Oriented Development, PHP 5Exceptional PHP: Extending The Base Exception Class
Wednesday, November 11th, 2009On Monday, we talked about the basics of exceptions and how they are used in PHP (as well as in other object-oriented programming languages). As promised, today we are going to talk about extending the base exception class in PHP.
One of the things that you can (and should) do with PHP exceptions is extend them [...]
Exceptional PHP: Introduction to Exceptions
Monday, November 9th, 2009A great feature of PHP is the ability to throw and catch exceptions. This feature was introduced in PHP 5, and has been around for years in other languages like Python.
Exceptions make it easy to interrupt program flow in the event that something goes wrong. They allow you to customize how a program handles errors, [...]
Web developer, amateur photographer, lover of the outdoors and travel. Expect to find me writing code, hiking or visiting new places. I own Blueprint DC and live in Washington, DC. Follow Me On Twitter!
- In Defense of Development Practices
- Upgrades In Open Source
- Taking A Look At Propel 1.5
- The Reasons To Attend PHP Conferences
- HipHop For PHP: Who Benefits, Who Doesn’t
- Some Soul Searching
- Cool DateTime Functions In PHP 5.3
- Testing: Making Sure Code Works Before Shipping It
- Build Systems: Relevancy of Automated Builds In A Web World
- How To Win Developers and Influence Code Quality