News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brandon Savage's Blog:
Peer Review Improving The Business Logic
September 08, 2009 @ 10:04:07

Brandon Savage has posted the fifth part of his "Peer Review" series where he's taken a sample application and worked it over - refactoring, updated to meeting coding standards and abstracting out interfaces to simplify the code. In this latest article he looks at a method to improve the business logic behind the scenes.

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 we have now has a number of logical flaws in it that we need to address. Additionally, there are some logical flaws that we started with that I want to highlight, even though we've already fixed them. Let's get started with those.

He looks at a few things like setting the host name as a property, using the return of the HTTP request and handling exceptions (like when Twitter's down). The resulting code is included.

0 comments voice your opinion now!
peer review business logic


blog comments powered by Disqus

Similar Posts

Davey Shafik's Blog: Mini-Review: Zend Guard vs IonCube PHP Encoder

Aaron Wormus\' Blog: PHPUnit Pocket Guide - 5 Minute Review

Danne Lundqvist's Blog: Zend Framework 1.8 Web Application Development review

Zend Developer Zone: PHP Gotchas!

Codewalkers.com: Booke Review - Pro PHP XML and Web Services


Community Events

Don't see your event here?
Let us know!


release opinion threedevsandamaybe introduction version framework symfony community language unittest library series security extension interview podcast laravel5 laravel voicesoftheelephpant api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework