Brandon Savage's Blog: Peer Review: Looking Into Abstraction

Courtesy PHPDeveloper.org  Wed, 08/26/2009 - 08:47

Brandon Savage has posted his latest article in his series looking at refactoring a piece of code (starting here ) focusing in on the abstraction already in the code and how it can be made better.

This article will focus on the constructor method. There are a couple of problems, namely that the constructor itself does a lot of actual work.

Also, we have the cURL setup done in the constructor. This object is a Twitter...


 

More related items

Brandon Savage's Blog: Peer Review: Looking At...
Brandon Savage has posted his latest part of his "Peer Review" series. He takesa step back and looks at abstraction again, this time incorporating some of the suggestions other members of...

Brandon Savage's Blog: The Registry Pattern Reexamined
Brandon Savage takes another look at a popular design pattern - the registry pattern - and how he's changed his thinking on its use a bit on how (or if) it should be used in your...

Brandon Savage's Blog: Exceptional PHP: Extending The...
Brandon Savage has posted the next part of his series looking at exceptions in PHP. This new article shows how to create a custom exception layer on top of the built-in handling. One of...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com