Accessing Databases with PDO: A Primer
Monday, October 5th, 2009With the introduction of PHP 5, the PHP Data Object was introduced as core functionality. PHP 5.1 turned on a minimum level of support for SQLite, by default, and PDO supports most of the major database engines. PDO offers a number of enhancements and improvements over the various database libraries (e.g. mysql_*, mysqli_*, pg_*), the [...]
1:00 am | Comment (4) | Print | Categories: Best Practices, PHP 5, System ArchitecturePeer Review: You Have Not Because You Ask Not (Requests & Responses)
Monday, September 21st, 2009This entry is part of an ongoing series involving the review of a code sample and it’s refactoring. For the original code sample, see here. The topics discussed in this entry may be fairly advanced. Please feel free to ask questions, and discuss best practices. If you’ve been following this series from the beginning, take [...]
1:00 am | Comment (6) | Print | Categories: Best Practices, PHP 5, System ArchitectureCustom Apps: Some Strategies For Easy Configuration Files
Wednesday, September 16th, 2009One of the decisions that has to be made each time an application is written for distribution is how best to set up the configuration files. There are a number of different approaches taken to this: some opt to use the define() function and define constants, while others use large arrays. The purpose of this [...]
1:00 am | Comment (11) | Print | Categories: Best Practices, PHP 5, System ArchitecturePeer Review: Testable Code And Architecture
Monday, September 14th, 2009This entry is part of an ongoing series involving the review of a code sample and it’s refactoring. For the original code sample, see here. Now that we’ve worked out the abstraction issues and the logic questions, we should take a moment to focus our attention on a few of the issues relating to the [...]
1:00 am | Comment (4) | Print | Categories: Best Practices, System Architecture, UsabilityPeer Review: Improving The Business Logic
Tuesday, September 8th, 2009This entry is part of an ongoing series involving the review of a code sample and it’s refactoring. For the original code sample, see here. So far, we’ve done quite a bit of work on our Twitter class, making it better. There’s still work to be done, though, especially improving the logic. The Twitter class [...]
1:00 am | Comment (10) | Print | Categories: Best Practices, Debugging, System Architecture
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
