News Feed
Sections




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

Soledad Penades' Blog:
Signs your PHP needs refactoring
June 05, 2007 @ 16:26:00

As mentioned by Ed Finkler, there's a list of signs your PHP needs refactoring from Soledad Penades.

I have had to go through a php application recently which has given me more than one headache and has required me to use all my possible patience. While working with it, I thought This is good material for an article, so that nobody else does the same in the future, and nobody else will need to experience the same displeasure as I have had to.

So here are the signs your PHP application needs a serious refactoring, right now

Included in the list are things like:

  • Uses global variables
  • Everything's an array
  • The neverending switch
  • Interface inconsistency

It hits on one of the thing that bugs me too, the problem of "Brackets galore" - so many subarrays that you have to resort to three or more sets of bracketed keys to get to the value you want. It's bad enough trying to follow someone else's code without having to "trace down" an array to figure out which of the values they're talking about.

0 comments voice your opinion now!
refactoring global bracket duplicate switch interface inconsistent refactoring global bracket duplicate switch interface inconsistent


blog comments powered by Disqus

Similar Posts

DevShed: Managing Secure Protocol in Apache-Based Websites using PHP

Community News: WebGrind Updated (Version 0.7 Released)

Kian Hui Teo\'s Blog: Switching between PHP 5.1.x and Zend Core for Oracle

Jani Hartikainen's Blog: The problems faced by a common model interface in frameworks

Robert Swarthout's Blog: PHP frontend to Subversion (SVN)


Community Events





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


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

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