News Feed
Sections




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

Jani Hartikainen's Blog:
Refactoring explained to an absolute beginner
June 28, 2010 @ 09:57:52

When developers start graduating from just hacking together scripts and want to start looking toward the future, one thing they start thinking about is making their code the best it could be. One way to achieve this is refactoring, but where to start? Well, this new post has an introductory guide to help developers understand this powerful technique.

Recently while on a drive with a non-programmer friend, I talked with him about code complexity and manageability, how very complicated code is detrimental to productivity and stuff like that. Later on, I decided to explain it to him with actual code examples, although the most he has ever done was some HTML back in elementary school.

He starts with a basic PHP+HTML+MySQL script that mixes the three and shows how to break it apart in steps - moving the PHP away from the HTML, creating functions and making a "template" for the database fetch results to display in.

0 comments voice your opinion now!
refactoring beginner tutorial mysql


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Migrating applications from PHP 4 to Zend Core 2.5 w/support for IBM Informix

PHPBuilder.com: Email Forms in PHP

PHPHacks.com: How to create an Ajax RSS reader with PHP

Brian Swan's Blog: Using the Windows Azure Command Line Tools for PHP

Martynas Jusevicius' Blog: Calculating great-circle distance in MySQL and Propel


Community Events





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


composer podcast framework configure list api language series laravel interview version introduction threedevsandamaybe opinion release symfony community unittest conference voicesoftheelephpant

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