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.
11:30 pm | Comment (1) | Print | Categories: Best Practices, Usability, Web ArchitectureSearching 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.
4:49 pm | Comment (0) | Print | Categories: Databases, UncategorizedKeeping 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?
2:35 pm | Comment (1) | Print | Categories: Business Management
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!- July Slides
- Some Thoughts On Software Licensing
- Interfaces Make Testing Easier
- Revisiting: Why Every Developer Should Write Their Own Framework
- The Fallacy of Sunk Cost
- PHP: The Good Parts – Book Review
- 1st Amendment, Meet 4th Amendment: The Gizmodo Search Warrant
- A Closer Look At ArrayObject
- TEK Webcast Notes
- Caching For WordPress – A TEK-X Webinar
