Where Comments Are Useful
Wednesday, December 24th, 2008PHP 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.
There’s a lot of good advice, especially about writing clean [...]
Searching Arrays for Values
Monday, December 22nd, 2008Sometimes 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 5For The Love Of God, Use Keys!
Saturday, December 20th, 2008I 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.
That changed, especially when I started playing with old data that I wanted to migrate. The read time on 15 [...]
Keeping Superglobals Out Of Classes
Monday, December 15th, 2008Have you ever written code like this?
1:41 pm | Comment (1) | Print | Categories: Best Practices, Usability, Web ArchitectureAttention Developers: The Problem Isn’t Technical
Sunday, December 14th, 2008How 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?
The subject may have been flogged to death, but I’m going to bring it up one more time. Why? Two reasons: first, [...]
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!
- The 15 Minute Rule Of Software Development
- Learning Zend Framework: A Case Study
- Why Active Record Isn’t A Bad Design Pattern
- 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