News Feed
Sections




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

PHPImact Blog:
Refactoring the Front Controller of the Zend Framework
August 20, 2008 @ 14:04:01

The PHP::Impact blog has a new tutorial posted today with a look at a refactoring of the front controller of the Zend Framework to make it a bit more manageable.

One of the most fundamental decision in object design is deciding where to put responsibilities. No one, and I mean no one, gets it right the first time. That's why refactoring is so important. As Kent Beck puts it, refactoring is the process of taking a system and adding to its value, not by changing its behaviour but by giving it more of these qualities that enable us to continue developing at speed.

He follows the "extract" refactoring method that makes things simpler by removing unneeded parts of the code (in favor of an interchangeable external "extract class". He removes seven methods from the class and splits them off into their own. This reduces the controller down to a more manageable size and takes a lot of the complexity out.

0 comments voice your opinion now!
tutorial refactor extract class zendframework front controller


blog comments powered by Disqus

Similar Posts

PHPMac.com: Two New Tutorials (Switch Navigation & A Simple Login)

SitePoint.com: Scheduling Tasks in WordPress: a Plugin Developer's Guide

PHPro.org: Calculate Friday The 13th With Datetime Class

IBM developerWorks: A step-by-step guide to publishing your own PEAR channels

Raymond Kolbe's Blog: DOMPDF in ZF2


Community Events





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


threedevsandamaybe community series framework conference introduction list api language deployment interview voicesoftheelephpant code zendserver podcast bugfix release tips symfony laravel

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