<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 24 May 2013 03:46:10 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[MaltBlue.com: 5 Reasons Coding Standards Are Essential]]></title>
      <guid>http://www.phpdeveloper.org/news/19306</guid>
      <link>http://www.phpdeveloper.org/news/19306</link>
      <description><![CDATA[<p>
<i>Matthew Setter</i> has posted five reasons why he thinks that making a coding standard is an essential part of your development process. <a href="http://www.maltblue.com/software-engineering-2/5-reaons-coding-standards-are-essential">He suggests</a> that "pain avoidance" is one of the key factors, both for new members of the team and for those maintaining it in the future.
</p>
<blockquote>
Whenever you're working on a project, are you consistent? Are you consistent in your coding style, consistent in your documenting, consistent in your database naming conventions? Better yet, do you and your team have a coding standard which you consistently adhere to? If you don't, you're buying yourself and others a world of pain - which is painlessly simple to avoid. Today I'm banging the drum, shouting from the street corner, calling from the cathedral spire, imploring you to do one thing, above all else - pick a coding standard and then BE CONSISTENT!
</blockquote>
<p>His five reasons for implementing (and effectively using) a coding standard are:</p>
<ul>
<li>Poor, Inconsistent Code - Causes You Pain
<li>Your Code is Easier to Read
<li>Your Code is Easier to Understand
<li>Your Code is Easier to Maintain
<li>Your Code is Easier to Collaborate on
</ul>
<p>
Check out <a href="http://www.maltblue.com/software-engineering-2/5-reaons-coding-standards-are-essential">the post</a> for summaries of each point.
</p>]]></description>
      <pubDate>Wed, 13 Mar 2013 10:13:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: PSR-Huh?]]></title>
      <guid>http://www.phpdeveloper.org/news/19058</guid>
      <link>http://www.phpdeveloper.org/news/19058</link>
      <description><![CDATA[<p>
On NetTuts.com today they've posted <a href="http://net.tutsplus.com/tutorials/php/psr-huh/">a good primer</a> for those that may have heard about the PSR standards that have been introduced to PHP but aren't quire sure what they are (or what they mean to you as a developer).
</p>
<blockquote>
If you're an avid PHP developer, it's quite likely that you've come across the abbreviation, PSR, which stands for "PHP Standards Recommendation." At the time of this writing, there are four of them: PSR-0 to PSR-3. Let's take a look at what these are, and why you should care (and participate).
</blockquote>
<p>
They start with a brief history of the standards, the PHP-FIG (Framework Interoperability Group) and where the idea for the PSRs came from. Then the article gets into the details of each:
</p>
<ul>
<li>PSR-0: Autoloader Standard
<li>PSR-1: Basic Coding Standard
<li>PSR-2: Coding Style Guide
<li>PSR-3: Logger Interface
</ul>
<p>
They also do a good job mentioning some of the criticism that's come with the standards and what sort of future there is including the creation of a standard for a <a href="https://groups.google.com/forum/?fromgroups=#!topic/php-fig/73cM2qq_uho">HTTP messaging package</a>.
</p>]]></description>
      <pubDate>Fri, 18 Jan 2013 09:14:59 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Rodger: Why I Have Given Up on Coding Standards]]></title>
      <guid>http://www.phpdeveloper.org/news/18849</guid>
      <link>http://www.phpdeveloper.org/news/18849</link>
      <description><![CDATA[<p>
In a recent (controversial) post <i>Richard Roger</i> talks about why he's <a href="http://www.richardrodger.com/2012/11/03/why-i-have-given-up-on-coding-standards">given up on coding standards</a> and includes a few of the reasons that might make you think about your own proceses.
</p>
<blockquote>
Every developer knows you should have a one, exact, coding standard in your company. Every developer also knows you have to fight to get your rules into the company standard. Every developer secretly despairs when starting a new job, afraid of the crazy coding standard some power-mad architect has dictated. It's better to throw coding standards out and allow free expression. The small win you get from increased conformity does not move the needle. Coding standards are technical ass-covering. 
</blockquote>
<p>
He walks through the evolution of the average developer, the trip from their infancy of "just writing code" to the point of understanding that there needs to be standards to make code easier to read and understand. He includes a list of five "sins of control" that might make coding standards more desirable.
</p>
<blockquote>
There are worse sins than these. You only need one of them to end up with a coding standard. The truly evil thing about coding standards is what they do to your heart, your team's heart. They are a little message that you are not good enough. You cannot quite be trusted. Without adult supervision, you'll mess up.
</blockquote>
<p>
As you'd expect, there's <a href="http://www.richardrodger.com/2012/11/03/why-i-have-given-up-on-coding-standards#comments">plenty of comments</a> on the post, so enjoy reading and maybe contribute some of your own.
</p>]]></description>
      <pubDate>Wed, 05 Dec 2012 13:17:48 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: PHP Coding Standards]]></title>
      <guid>http://www.phpdeveloper.org/news/18011</guid>
      <link>http://www.phpdeveloper.org/news/18011</link>
      <description><![CDATA[<p>
<i>Brian Moon</i> has shared some of his thoughts <a href="http://brian.moonspot.net/php-coding-standards">about the recently proposed standards</a> (PSRs) from the PHP-FIG group based on some discussions had at this year's <a href="http://tek.phparch.com">php|tek</a>. 
</p>
<blockquote>
During the /dev/hell podcast at Tek12, someone asked the guys their opinion about PSR. [...] The person asking the question had asked about PSR1 and PSR2. These are the first two standards proposals in the group and they deal with coding standards. [...] There are already coding standards for PHP and any other language out there. Why does anyone need to make a new one? [...] This reminds me a lot of <a href="http://opensource.org/licenses/alphabetical">Open Source licenses</a>. There are tons of these things. And in the end, most (GPL has its issues I know) of the open source licenses represent the same idea.
</blockquote>
<p>
He goes on to talk more about the feedback he's gotten from other PHP community members about the target of the group and his thoughts on the naming of both the group and the standards they're generating. 
</p>
<blockquote>
In the end, cooperation is good. And if these guys want to cooperate I say more power to them. I just hope they get into really good things soon. Like, can we talk about a maximum number of files, functions or classes used for any one single page execution? *That* would be valuable to the PHP community.
</blockquote>]]></description>
      <pubDate>Mon, 28 May 2012 17:12:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: PSR-1 and PSR-2 to be Approved as Standards]]></title>
      <guid>http://www.phpdeveloper.org/news/17991</guid>
      <link>http://www.phpdeveloper.org/news/17991</link>
      <description><![CDATA[<p>
As is mentioned in <a href="http://phpmaster.com/psr-1-and-psr-2-to-be-approved-as-standards/">this new post</a> to PHPMaster.com, the PHP standards group is officially in the voting process on two new standards (<a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md">PSR-0</a> being the first) setting up some standard development practices for PHP applications - <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-1-basic.md">PSR-1</a> and <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-2-advanced.md">PSR-2</a>.
</p>
<blockquote>
They initially started out as one proposal but the initial round of voting didn't yield a majority in favor. Participants did however see merit in various requirements the decision was made to split it into 2 proposals - one for mandatory interoperability and one for suggested style.
</blockquote>
<p>
The <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-1-basic.md">PSR-1</a> standard proposes some basic coding standards (like namespacing structure and class/method naming definitions) and the <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-2-advanced.md">PSR-2</a> standard covers similar things, but more in-depth with more recommendations. 
</p>
<p>
If you want to find out how your application stacks up against this new standard, you can try out <a href="https://github.com/fabpot/PHP-CS-Fixer">PHP-CS-Fixer</a> (from <i>Fabien Potencier</i>) to see how many things need an update.
</p>]]></description>
      <pubDate>Tue, 22 May 2012 13:18:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Marek's Blog: PHP 5.4 Compatibility Coding Standard for PHP_CodeSniffer]]></title>
      <guid>http://www.phpdeveloper.org/news/17618</guid>
      <link>http://www.phpdeveloper.org/news/17618</link>
      <description><![CDATA[<p>
In the wake of the <a href="http://phpdeveloper.org/news/17614">official release of PHP 5.4</a> <i>Sebastian Marek</i> has made a <a href="http://criticallog.thornet.net/2012/03/02/php-5-4-compatibility-coding-standard-for-php_codesniffer/">quick post</a> to his blog about bringing PHP_CodeSniffer rules help bring his code up to date with this latest version.
</p>
<blockquote>
So with PHP 5.3 upgrade underway (and <a href="http://php.net/releases/5_4_0.php">PHP 5.4 out of the door now</a>!) I thought it's time to prepare for PHP 5.4 and make sure we're compatible. So by looking at Wim Godden's <a href="https://github.com/wimg/PHP53Compat_CodeSniffer">PHP53Compatibility code sniffs</a> I have created a base for PHP 5.4 sniffs that we want to use to make sure we're compatible.
</blockquote>
<p>Sniffs included in set are:</p>
<ul>
<li>PHP54Compatibility_Sniffs_PHP_BreakContinueVarSyntaxSniff
<li>PHP54Compatibility_Sniffs_PHP_DeprecatedFunctionsSniff
</ul>
<p>
You can grab this custom set of sniffs either from <a href="https://github.com/proofek/PHP54Compatibility">his github repository</a> or from <a href="http://proofek.github.com/pear">his personal PEAR channel</a> if you'd rather install it that way (alpha channel). 
</p>]]></description>
      <pubDate>Fri, 02 Mar 2012 10:52:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Volker Dusch's Blog: How i judge frameworks - Or: Let me code in peace]]></title>
      <guid>http://www.phpdeveloper.org/news/16357</guid>
      <link>http://www.phpdeveloper.org/news/16357</link>
      <description><![CDATA[<p>
With all of the frameworks making their way around the PHP community, it's interesting to see different developers' takes on judging which is the best for their needs. In <a href="http://edorian.posterous.com/how-i-judge-frameworks-or-let-me-code-in-peac">this new post</a> to his blog <i>Volker Dusch</i> takes the opposite stance - he hates talking about frameworks.
</p>
<blockquote>
I just hate talking about frameworks! But as it seems not many people share that feeling so this is an attempt to write a rather short and linkable post on how i approach a new framework and by what standards i judge it. [...] I'm not going to call any names in this post so no need to grab your pitchforks. (For some reason people seem to get really upset when you tell them you don't like the framework the use)
</blockquote>
<p>
He asks himself a few questions like "can I still write code to my standards" and "how many 'positive adjectives' are used in the description" (inversely related to the quality of the project in his experience). He also talks about one of his other big requirements - being able to actually write unit tests for his code (i.e. the framework must make things testable). 
</p>]]></description>
      <pubDate>Wed, 18 May 2011 13:45:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Volker Dusch's Blog: Please ship your own coding standard as part of your project]]></title>
      <guid>http://www.phpdeveloper.org/news/16039</guid>
      <link>http://www.phpdeveloper.org/news/16039</link>
      <description><![CDATA[<p>
<i>Volker Dusch</i> 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 - <a href="http://edorian.posterous.com/please-ship-your-own-coding-standard-as-part">including your coding standard</a> along with the rest of your project.
</p>
<blockquote>
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.
</blockquote>
<p>
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 <a href="http://pear.php.net/manual/en/package.php.php-codesniffer.intro.php">PHP_CodeSniffer</a> and the <a href="http://phpmd.org/">PHP Mess Detector</a> as a part of a Jenkins installation (easily built from <a href="http://jenkins-php.org/">this handy project</a>). 
</p>]]></description>
      <pubDate>Mon, 14 Mar 2011 11:32:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mayflower Blog: Creating coding standards for PHP_CodeSniffer]]></title>
      <guid>http://www.phpdeveloper.org/news/15966</guid>
      <link>http://www.phpdeveloper.org/news/15966</link>
      <description><![CDATA[<p>
On the Mayflower blog today there's a new tutorial posted about <a href="http://blog.mayflower.de/archives/631-Creating-coding-standards-for-PHP_CodeSniffer.html">creating coding standard "sniffs"</a> for the PHP_CodeSniffer tool. A "sniff" is what defines the rules for your coding standards to follow (like "curly braces after function definitions should be on the next line" kinds of things).
</p>
<blockquote>
In some cases the pre-installed coding standards like PEAR or Zend might not be sufficient for our current project or we want to deviate. This is the moment when we want to be able to create a custom one that fits our special needs. In this article I want to share my first experiences with you about how to create a custom coding standard for PHP_CodeSniffer.
</blockquote>
<p>
They get into the details of what a "sniff" is and shows where they belong in the current structure of your PEAR install. There's an example of how to run the command line tool and how to create your own structure for your own custom sniffs. Their first example sniff checks to ensure that the first letter of a class is in uppercase. 
</p>]]></description>
      <pubDate>Fri, 25 Feb 2011 13:33:07 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Nefarious Designs Blog: On Coding Standards]]></title>
      <guid>http://www.phpdeveloper.org/news/15845</guid>
      <link>http://www.phpdeveloper.org/news/15845</link>
      <description><![CDATA[<p>
On the Nefarious Designs blog today there's a new post looking at something that can be a key in the strategy of a development group - <a href="http://nefariousdesigns.co.uk/archive/2011/01/on-coding-standards/">creating a coding standard</a>.
</p>
<blockquote>
In my time as a web developer, I have been involved in the definition, implementation, and maintenance of several different coding standards, across various web-based languages. In my experience, this process is not as straightforward as it first seems, and can lead to a great deal of headaches if not handled in a very specific manner.
</blockquote>
<p>
He talks about why a coding standard is even important and some of the first steps you and your team can take towards creating them. He breaks it up into a few different sections:
</p>
<ul>
<li>Comments
<li>Naming conventions
<li>Style (ex. tabs versus spaces)
<li>Already accepted standards
<li>Expressions
<li>Concerns over file size
</ul>]]></description>
      <pubDate>Wed, 02 Feb 2011 10:15:46 -0600</pubDate>
    </item>
  </channel>
</rss>
