Why Every Developer Should Write Their Own Framework

Friday, November 6th, 2009

Lots of people have the itch to write their own frameworks. They think that they can do better than Zend, Cake, Symfony, or application-level frameworks like Drupal. They’re convinced that those designers and developers made fatal flaws, and they can improve upon them. They’re just itching to give it a shot.
So for those of you [...]

1:00 am | Comment (38) | Print | Categories: General PHP, System Architecture

Five Tips To Make Good Object-Oriented Code Better

Wednesday, October 28th, 2009

Last week, I did a talk at the Frederick Web meetup about tips and tricks for improving your object-oriented code. A lot of these tips were adapted from a fabulous presentation by Stefan Priebsch but the ideas are by no means original to him, and they’re exceptionally good ideas when you’re talking about object-oriented code. [...]

1:00 am | Comment (13) | Print | Categories: Best Practices, PHP 5, System Architecture

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 a moment [...]

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