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, traveller, and amatuer chef. Expect to find me writing code, visiting new places or trying a new recipe. I live with my wife in Olney, Maryland. Follow Me On Twitter!- Excited About PHP Again
- Rethinking The Technical Resume
- We The State, Not We The People
- Working To Defeat the Stop Online Piracy Act
- Diversifying This Blog
- What do you want the web to be?
- Why I Love Being An Engineer
- Validation Blind Spots Hurt Real Users
- Finding A Job Without A Recruiter
- Why Recruiters Are Bad For Your Career
