Where Comments Are Useful

Wednesday, December 24th, 2008

PHP In Action writes on the use of comments in code, specifically citing Eli White’s Commenting on Commenting over at PHP Advent. They are critical of Eli’s advice, saying that comments should be unnecessary, and that code should be clean enough to easily understand it.

11:30 pm | Comment (1) | Print | Categories: Best Practices, Usability, Web Architecture

Searching Arrays for Values

Monday, December 22nd, 2008

Sometimes I have to check an array for the existence of a value; for example, I may want to parse an array for a value and then include (or exclude) that value fro an SQL query. I quickly found out that using in_array() is slower than using isset(). For example:

6:56 pm | Comment (3) | Print | Categories: General PHP, PHP 5

For The Love Of God, Use Keys!

Saturday, December 20th, 2008

I recently worked on an application I built some time ago. It was built before I had regard for performance or cared about how a MySQL database should be built. As such, it had no indexes.

4:49 pm | Comment (0) | Print | Categories: Databases, Uncategorized

Keeping Superglobals Out Of Classes

Monday, December 15th, 2008

Have you ever written code like this?

1:41 pm | Comment (1) | Print | Categories: Best Practices, Usability, Web Architecture

Attention Developers: The Problem Isn’t Technical

Sunday, December 14th, 2008

How many times have we heard it? Our bosses, colleagues, everyone, it seems, reminds us time and time again that we’re actually customer service professionals, as well as developers. Seems we’d get it, right?

2:35 pm | Comment (1) | Print | Categories: Business Management
« Older Entries
Search:
Copyright © 2008 - 2010. All Rights Reserved.