Why Active Record Isn’t A Bad Design Pattern

Tuesday, March 16th, 2010

Were I writing this as an article for a newspaper, the subhead would be “Design Patterns Don’t Cause Application Slowness.” The point of this piece isn’t to defend Active Record per se; it’s to discuss the fact that design patterns aren’t to blame for your application’s problems, and more to the point, design patterns aren’t [...]

9:00 am | Comment (9) | Print | Categories: Best Practices, Object-Oriented Development, System Architecture

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