News Feed
Sections




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

Volker Dusch's Blog:
Please ship your own coding standard as part of your project
March 14, 2011 @ 11:32:47

Volker Dusch has a suggestion for all of the PHP projects (or, really Open Source projects in general) that can help keep things cleaner in your codebase and make for simpler times when merging contributions - including your coding standard along with the rest of your project.

Let me elaborate on [an important] point: Contribution. Most developers i know care about producing good code, especially then they are contributing to an open source project! Those people will respect your coding standard, naming scheme and every thing else that they can check for before sending you all patch/pull request. So try to make that part easy.

He talks about doing things the hard way - reformatting everything by hand each time someone contributes - or the easier way of enforcing the coding standard as a part of the contribution flow. He mentions PHP_CodeSniffer and the PHP Mess Detector as a part of a Jenkins installation (easily built from this handy project).

0 comments voice your opinion now!
coding standard phpcodesniffer phpmessdetector jenkins contribution


blog comments powered by Disqus

Similar Posts

Reddit.com: PSR-6 Caching Interface and PSR-5 PHPDoc enter Draft status

PHPMaster.com: PSR-1 and PSR-2 to be Approved as Standards

PHP-Coding-Practices.com: PHP Code-Beautifier Tool

Blue Parabola Blog: How do you measure 'contribution'?

Raphael Stolt's Blog: Zend Framework coding standards on one page


Community Events





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


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

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