News Feed
Jobs Feed
Sections




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

DZone.com:
Refactoring away from spaghetti PHP
July 24, 2012 @ 10:29:47

In this new post to DZone.com, Giorgio Sironi walks you through a few steps to consider when trying to refactor some of the spaghetti code out of your application.

Sometimes you have to take a step back from discussions on coupling, cohesion, patterns and katas to give some training to the ones of us that have a procedural mindset. With this article I hope to provide some initial tips for the members of the PHP community that are ready to abandon the concept of the OneSingleProcedure(TM) to embrace the object world.

He includes a common procedural example with all of the logic in one file and talks about how the idea of "decomposition" can help to break it up into objects with their own roles and responsibilities.

0 comments voice your opinion now!
refactor spaghetti code tutorial object oop


blog comments powered by Disqus

Similar Posts

MaltBlue.com: Zend Form Mastery with Zend Config - Part 4 Configuring Zend Validators

NETTUTS.com: CodeIgniter from Scratch: File Uploading and Image Manipulation

Nefarious Designs: Object-Oriented PHP Part 2: Relationships

DevShed: Handling Cookies and File Data with the Factory Pattern in PHP 5

Zend Developer Zone: Search Engine Friendly Websites with the Zend Framework


Community Events











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


release application introduction install hhvm composer performance symfony2 hack podcast opinion component unittest framework package facebook language security series example

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