News Feed
Sections




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

Perforce Software:
Seven Pillars of Pretty Code
April 23, 2010 @ 12:08:43

As linked to by Paul Jones there's an interesting whitepaper that's been published by Perforce Software about what they see as the Seven Pillars of Pretty Code.

The essence of pretty code is that one can infer much about the code's structure from a glance, without completely reading it. I call this "visual parsing": discerning the flow and relative importance of code from its shape. Engineering such code requires a certain amount of artifice to transform otherwise working code into working, readable code, making the extra step to leave visual cues for the user, not the compiler.

The goal of these recommendations isn't to help you structure your code better or to optimize it for the best performance. The goal is to make code that is easy to follow and simpler to read for both the experienced developers and those just coming in.

Their suggestions include making the code blend in, keeping the code "untangled", including plenty of comments and reducing clutter overall.

1 comment voice your opinion now!
suggestion clean code opinion


blog comments powered by Disqus

Similar Posts

Zend: Zend Reveals What Music Will Keep Developers Productive (and Happy) This Holiday

Reddit.com: Let's Make PHP's Function Names Consistent!

PHPClasses.org: Accelerate Web Pages Automatically using Google Mod_PageSpeed

Patrick Allaert's Blog: Coding standards: converts PHP4 style constructors to PHP5 one

Brandon Savage's Blog: 5 (Good) Lessons The Government Teaches Us About Object-Oriented Programming


Community Events





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


language voicesoftheelephpant list symfony tool release artisanfiles community framework series podcast conference interview version library opinion security introduction composer laravel

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