Accessing Databases with PDO: A Primer

Monday, October 5th, 2009

With 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 Architecture

Peer Review: You Have Not Because You Ask Not (Requests & Responses)

Monday, September 21st, 2009

This 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 Architecture

Custom Apps: Some Strategies For Easy Configuration Files

Wednesday, September 16th, 2009

One 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 Architecture

Peer Review: Testable Code And Architecture

Monday, September 14th, 2009

This 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, Usability

Peer Review: Improving The Business Logic

Tuesday, September 8th, 2009

This 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
« Older Entries
Newer Entries »
Search:
Copyright © 2008 - 2010. All Rights Reserved.