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...
Post new comment