News Feed
Sections




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

Sameer Borate's Blog:
Source Code Signatures in PHP
November 10, 2011 @ 13:11:17

In this new post to his blog Sameer Borate applies an interesting method of discovery of structure in unfamiliar code - generating code signatures.

One method [Ward Cunningham] suggests is that of summarizing on a single line select punctuation characters from each source file. He calls this the file's "signature". This will help the developer gauge the complexity of the code base.

He includes a few examples from files in WordPress - looking for the structure of curly braces and semicolons as delimiters for chunks of functionality. Included are a few lines of code to help you generate a signature from any file and an example of a result. It's an interesting idea, but I'm not sure how practical it is. It could be a helpful reference for how complicated the file is, though.

0 comments voice your opinion now!
sourcecode signature wordpress complexity


blog comments powered by Disqus

Similar Posts

Shantanu Goel's Blog: Migrating From PHP4 To PHP5: Solving WP-Cache (and maybe other) Issues

Gentoo Blog: PHP's Simplicity Can Confuse Folks Looking For Complexity

Ryan Malesevich's Blog: More Thoughts on Wordpress 2.1

Tom Barrett's Blog: WordPress is more than a CMS, it is a PHP Framework

ThinkPHP Blog: Improving Usability on "My Chorizo" page: the host signature file


Community Events





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


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

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