Federico Cargnelutti

Simple is better than complex. Complex is better than complicated. | @fedecarg

Archive for June 2007

Standard PHP Library (SPL)

with 2 comments

SPL provides a standard set of interfaces for PHP5. The aim of SPL is to implement some efficient data access interfaces and classes for PHP. Functionally it is designed to traverse aggregate structures (anything you want to loop over). These may include arrays, database result sets, xml trees, directory listings or any list at all. Currently SPL deals with Iterators. To see all the classes available to SPL, this simple snippet will show you.

Excellent tutorial written by Kevin Waterso. Read more…

Written by Federico

June 25, 2007 at 8:56 pm

Posted in PHP

Six ways to write more comprehensible code

leave a comment »

As a developer, time is your most valuable resource. These six tips on how to write maintainable code are guaranteed to save you time and frustration: one minute spent writing comments can save you an hour of anguish.

Read more…

Written by Federico

June 22, 2007 at 10:05 pm

Posted in PHP

Follow

Get every new post delivered to your Inbox.

Join 1,033 other followers