Five Cool PHP Array Functions

Wednesday, October 21st, 2009

Time and time again, I come across code that contains a variety of array-handling functions that too often duplicate the work that the PHP core team has done to develop built-in array functions. Since the built-in functions are inherently faster, trying to reimplement them in PHP will inevitably be a performance problem. Here are five [...]

1:00 am | Comment (21) | Print | Categories: Best Practices, General PHP

Micro Optimizations That Don’t Matter

Monday, October 26th, 2009

Last week I wrote about some optimizations you can apply to your code that will improve the performance of your site significantly. I also mentioned that regularly an article pops up talking about ways to shave time off your scripts, and I talked about how these articles mostly are bunk. Like this one.

1:00 am | Comment (9) | Print | Categories: Best Practices

Adapting The Joel Test To Web Development

Wednesday, November 4th, 2009

Nearly a decade ago, Joel Spolsky came up with a method by which to evaluate software development shops that has come to be known as the Joel Test. This crucial test evaluates a software development company on the basis of twelve criteria points; Spoksly said that “a score of 12 is perfect, 11 is tolerable, [...]

1:00 am | Comment (15) | Print | Categories: Best Practices

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.

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

Suhosin: The Invisible Hand Of PHP

Wednesday, November 18th, 2009

Last week, I received an email from someone who told me how the Suhosin patch had created problems for their team, and suggested that I write about it here. I thought this was a great idea, for a number of reasons. Particularly, Suhosin is one of those PHP patches that alters the way PHP operates [...]

1:00 am | Comment (8) | Print | Categories: Best Practices, Security
« Older Entries
Newer Entries »
Search:
Copyright © 2008 - 2010. All Rights Reserved.