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:
Effective Refactoring Strategies
December 24, 2012 @ 11:24:57

In a recent post to his site, Brandon Savage has a few helpful hints to keep in mind when you're refactoring your applications to make them easier to maintain (and possibly perform better) in the future.

The downtime [of this week] provides a perfect opportunity for the aspiring software developer to do the one thing they are always told there's no time to do: make the code better for better's sake. With few deadlines and plenty of free time, most developers can get a few hours of refactoring in to their code towards the end of the year. They can rearchitect sections that were implemented with haste in September; they can write tests for sections that were untested in April. Put another way, the "lost week" can be redeemed.

He has a few recommendations, each including their own brief summary:

  • Test Everything First
  • One Method, One Job (Also One Class, One Job)
  • Don't Be Afraid Of More Objects And Classes
  • Remove Dead, Unused, Unnecessary or Old Code
  • Document Your Code

Check out the full post for the summaries and links to other useful resources.

0 comments voice your opinion now!
refactoring tips test single responsibility oop documentation


blog comments powered by Disqus

Similar Posts

Community News: Adroit Framework Released

PHP vs. .NET Blog: Ten PHP Best Practices Tips that will get you a job

Kevin van Zonneveld's Blog: 7 Steps to better PEAR documentation

Vexxhost.com: Top 5 new (and cool!) features in PHP5 that you probably haven't heard of

Hannes Magnusson's Blog: PhD: The [PH]P based [D]ocbook renderer RC1 released


Community Events





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


framework symfony developer interview library deployment release podcast conference bugfix api language laravel tips list series introduction zendserver community opinion

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