News Feed
Sections




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

PHPMaster.com:
Practical Code Refactoring, Part 2 - Readability
October 22, 2012 @ 10:16:03

PHPMaster.com has returned with the second part of their guide to code refactoring. In this second part they pick up where they left off and focus on code readability this time.

In part one of this series I introduced what constitutes good code. As the series on code refactoring continues we'll dive into each of the three aspects and see how to refactor for each of them in order: readability, extensibility, and efficiency. In this part, the focus is on refactoring your code for better readability. Recall the definition of readability: readable code follows some well-known style and documentation practices. To help you start refactoring your code for readability, I've prepared this list of questions you should ask yourself throughout the development, testing, and review process.

There's a few different types of things that contribute to readable code, so he breaks the article up into a few sections:

  • General things like coding style guides, header comments and a reduction of global code
  • Naming conventions, well-named variables and methods
  • Simplified and easy to use expressions
  • Blocks of code, their average size and complexity.
0 comments voice your opinion now!
readability code refactor guide tutorial series


blog comments powered by Disqus

Similar Posts

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

Anna Filina's Blog: Symfony - subfolders for partials

Kevin Schroeder's Blog: Zend_Server

SitePoint PHP Blog: Social Network Style Posting with PHP, MongoDB and jQuery - part 1

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 12)


Community Events





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


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

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