<?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>Sun, 12 Feb 2012 21:45:06 -0600</pubDate>
    <ttl>30</ttl>
    <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>
    <item>
      <title><![CDATA[Mashable.com: 8 Experts Break Down the Pros and Cons of Coding With PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15479</guid>
      <link>http://www.phpdeveloper.org/news/15479</link>
      <description><![CDATA[<p>
Mashable has posted <a href="http://mashable.com/2010/11/19/pros-cons-php/">the third part</a> of their "PHP experts" series with a look at what the eight people on their panel think are some of the pros and cons about developing with PHP.
</p>
<blockquote>
In recent posts, our "PHP masters" gave helpful <a href="http://mashable.com/2010/10/21/php-tips-for-beginners/">hints for beginners</a> as well as some <a href="http://mashable.com/2010/11/03/advanced-php-tips/">pointers for intermediate and advanced coders</a>. For the last post in this series, we've turned to the same experts with some more general questions: What makes PHP a good language? What are some of PHP's drawbacks? And what are the best apps or cleverest hacks you've seen made with and/or for PHP?
</blockquote>
<p>
Some of the reasons the panels gave were some common issues you hear about with PHP every day - how easy the language makes "spaghetti coding", the low barrier to entry (both good and bad), a problem with copy and pasting and - a very good thing - the documentation the project provides. Disclaimer: I was a member of the panel.
</p>]]></description>
      <pubDate>Tue, 23 Nov 2010 12:06:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Enforcing Coding Standards with PHP_CodeSniffer ]]></title>
      <guid>http://www.phpdeveloper.org/news/15321</guid>
      <link>http://www.phpdeveloper.org/news/15321</link>
      <description><![CDATA[<p>
Developing applications has become simpler and simpler these days and the multitude of IDEs out there can help you keep all of your files organized and linked together so you know everything is in its place. There's one thing that only a handful out there can do, though - enforce coding standards. Thankfully, there's a tool that can help you keep your code following down the right path and PHPBuilder.com <a href="http://www.phpbuilder.com/columns/PHP_CodeSniffer/Jason_Gilmore10212010.php3">has a new tutorial</a> about using it - PHP_CodeSniffer.
</p>
<blockquote>
Although defined according to formal grammar and syntax, programming languages -- like their spoken counterparts -- often leave their users with a great deal of leeway for creative expression. [...] It can even be singularly counterproductive if you do not maintain stylistic consistency across projects, as you'll need to continuously re-acclimate to differing syntactical variations.
</blockquote>
<p>
The PHP_CodeSniffer tool runs your code through a validation process and checks its structure against a coding standard (like the <a href="http://pear.php.net/manual/en/standards.php">PEAR standard</a>) and ensure it's formatted correctly. The tutorial shows you how to use the "phpcs" executable to test PHP, Javascript and CSSS files (using the Squiz standard).
</p>]]></description>
      <pubDate>Fri, 22 Oct 2010 08:40:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Leszek Stachowski's Blog: php anachronic coding standards]]></title>
      <guid>http://www.phpdeveloper.org/news/15297</guid>
      <link>http://www.phpdeveloper.org/news/15297</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Leszek Stachowski</i> <a href="http://shazarre.wordpress.com/2010/10/18/php-anachronic-coding-standards/">wonders about a coding convention</a> that's still widely used when it comes to private methods in a class - the underscore prefix.
</p>
<blockquote>
The question which comes instantly to my mind is: why? Is there any reason why this convention should be kept when PHP object oriented programming has gone a long way since PHP 4 (when there was no access modifiers and such underscore was the only fast way to distinguish public from, hmm, not public methods and properties) ? Are, for instance (as one of major OOP languages), Java coding standards pushing towards such naming convention? No!
</blockquote>
<p>
He, like many other developers, are pushing to drop this kind of convention as an outdated reminder of the PHP4 days when "private" didn't exist in the language. Scope modifiers have done away with the need for that underscore completely.
</p>]]></description>
      <pubDate>Mon, 18 Oct 2010 13:46:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint.com: Should Designers Have Coding Skills?]]></title>
      <guid>http://www.phpdeveloper.org/news/14489</guid>
      <link>http://www.phpdeveloper.org/news/14489</link>
      <description><![CDATA[<p>
On SitePoint.com there's an <a href="http://www.sitepoint.com/blogs/2010/05/10/should-designers-have-coding-skills/">interesting opinion piece</a> on one of the bigger debates in the web development world - should designers know how to write code, even if it's just a little?
</p>
<blockquote>
This debate has been raging on SitePoint for some time. The issue was raised by Elliot Jay Stocks following a simple tweet: "Honestly, I'm shocked that in 2010 I'm still coming across '˜web designers' who can't code their own designs. No excuse."
</blockquote>
<p>
This, of course, sparked a whole host of other opinions from the SitePoint readers and they've gathered them together and summarized the "for" and "against" topics from there. Those on the pro-coding side suggest that not only does it give them some appreciation for what the developers do for the designers but it also can make them a better, more flexible asset down the line. The those on the con-coding side suggest that designer time is precious and should be devoted to the usability of the site. They also note that you don't "need to be a plumber" to know how to get a working site together - each member needs to do their job.
</p>
<p>
Be sure to check out <a href="http://www.sitepoint.com/blogs/2010/05/10/should-designers-have-coding-skills/#comments">the comments</a> for some other great thoughts from the community.
</p>]]></description>
      <pubDate>Mon, 10 May 2010 12:06:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Smashing Magazine: The Poetics Of Coding]]></title>
      <guid>http://www.phpdeveloper.org/news/14474</guid>
      <link>http://www.phpdeveloper.org/news/14474</link>
      <description><![CDATA[<p>
On the Smashing Magazine site today there's <a href="http://www.smashingmagazine.com/2010/05/05/the-poetics-of-coding/">a new post</a> with an interesting perspective on how writing code (regardless of the language) is similar to writing poetry - a more human spin on something generally thought of as logical and restrictive.
</p> 
<blockquote>
That's an interesting metaphor. Recently, I've written about the <a href="http://blog.echoenduring.com/2010/03/05/language-and-metaphor-an-alternate-view-on-coding-for-the-web/">different languages</a> used by designers and developers, and also about the <a href="http://blog.echoenduring.com/2010/03/09/more-thoughts-on-language-and-coding-for-the-web/">relationship</a> between these coding languages and proper human language (specifically, English). As someone who graduated from university with a degree in English Literature and came to Web design in a roundabout way, this kind of thinking has always interested me.
</blockquote>
<p>
He starts at a high level looking at a superficial similarity in how they're structured on the page and how they can use just the things they need to get their point across. He also talks about the bad code/bad poetry similarities and how purpose, meaning and structure all come into play.
</p>
<p>
Be sure to check out <a href="http://www.smashingmagazine.com/2010/05/05/the-poetics-of-coding/#comments">the great comments</a> for more thoughts on the subject.
</p>]]></description>
      <pubDate>Thu, 06 May 2010 12:16:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Klaus Graefensteiner's Blog: Enforcing PHP coding standards with Eclipse PDT]]></title>
      <guid>http://www.phpdeveloper.org/news/14276</guid>
      <link>http://www.phpdeveloper.org/news/14276</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Klaus Graefensteiner</i> takes a look at a quick way you can <a href="http://www.tellingmachine.com/post/Enforcing-PHP-coding-standards-with-Eclipse-PDT.aspx">enforce your set of coding standards</a> right inside of the Eclipse IDE with the PDT extension installed. It's not the easiest thing to do, but if you have a well-defined coding standard and know you'll be enforcing it strongly, this might be the way to go.
</p>
<blockquote>
I recently came across a nice collection of coding standards that the developers at <a href="http://codex.gallery2.org/Gallery3:Coding_Standards">Gallery2.org</a> are using. I especially liked the summary of settings for Eclipse PDT. I applied them to my Eclipse PDT development environment, took some screenshots and put this article together for my personal reference:
</blockquote>
<p>
Settings he changes include some of the general editor settings (like tab width and margins) as well as PHP and source control specific settings to remove extensions the IDE doesn't need to worry about. He also mentions the "Code Templates" feature that allow you to get more specific and define the standards at the code level, not just the editor.
</p>]]></description>
      <pubDate>Wed, 31 Mar 2010 11:19:25 -0500</pubDate>
    </item>
  </channel>
</rss>

