Upgrades In Open Source

Monday, March 8th, 2010

PHP 5.3 has been out now for eight months, and in that time lots of projects have made decisions to begin developing against this version of PHP. Juozas Kaziukenas makes the argument that you shouldn’t be afraid of PHP 5.3 and he provides a number of excellent points to support his argument.
I don’t dispute [...]

1:00 am | Comment (4) | Print | Categories: Open Source, PHP 5

Cool DateTime Functions In PHP 5.3

Monday, January 25th, 2010

Over 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 [...]

1:00 am | Comment (11) | Print | Categories: Object-Oriented Development, PHP 5

Exceptional PHP: Nesting Exceptions In PHP

Thursday, November 12th, 2009

In 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 5

Exceptional PHP: Extending The Base Exception Class

Wednesday, November 11th, 2009

On 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 [...]

1:00 am | Comment (5) | Print | Categories: Best Practices, Object-Oriented Development, PHP 5

Exceptional PHP: Introduction to Exceptions

Monday, November 9th, 2009

A 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, [...]

1:00 am | Comment (9) | Print | Categories: Best Practices, Object-Oriented Development, PHP 5
« Older Entries
Search:
Copyright © 2008 - 2010. All Rights Reserved.