<?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>Tue, 21 May 2013 20:53:45 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHP Town Hall Podcast: Episode #6 - PSR-X and the Mexican Standoff]]></title>
      <guid>http://www.phpdeveloper.org/news/19489</guid>
      <link>http://www.phpdeveloper.org/news/19489</link>
      <description><![CDATA[<p>
The PHP Town Hall podcast has released the latest episode of their show - <a href="http://phptownhall.com/blog/2013/04/19/episode-6-psr-x-and-the-mexican-standoff/">Episode #6</a>, "PSR-X and the Mexican Standoff".
</p>
<blockquote>
PHP-FIG member Paul M. Jones and PHP contributor Anthony Ferrera come on the podcast with Ben, Phil and regular guest Zack Kitzmiller to discuss the new Package Orientated Autoloader Proposal (a.k.a PSR-X), and wether or not PSR's should ever be amended.[...] Nobody wins, but the argument brings up a lot of interesting topics and points of view, and that is mostly what we are here for.
</blockquote>
<p>
You can listen to this latest episode either through the <a href="http://phptownhall.com/blog/2013/04/19/episode-6-psr-x-and-the-mexican-standoff/">in-page player</a> by <a href="http://s3.amazonaws.com/phptownhall/6.mp3">downloading the mp3</a> or by <a href="http://phptownhall.com/itunes.rss">subscribing to their feed</a>. The post also contains links to several of the groups and technologies mentioned in the episode.
</p>
Link: http://phptownhall.com/blog/2013/04/19/episode-6-psr-x-and-the-mexican-standoff]]></description>
      <pubDate>Mon, 22 Apr 2013 09:56:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tom Butler: PHP: PSR-0: Pretty Shortsighted, Really]]></title>
      <guid>http://www.phpdeveloper.org/news/19469</guid>
      <link>http://www.phpdeveloper.org/news/19469</link>
      <description><![CDATA[<p>
In a new post to his site <i>Tom Butler</i> gives some reasoning as to why he <a href="http://r.je/php-psr-0-pretty-shortsighted-really.html">thinks PSR-0 is shortsighted</a> and some examples of a possible better alternative.
</p>
<blockquote>
A little background for those unaware of what PSR-0 is: There's a self-declared PHP "standards" group called PHP-FIG attempting to push several "standards" throughout the PHP community. [...] I have little interest in debating the politics behind pushing standards or whether small groups of developers trying to make decisions that affect the entire community is good or not, but I do object to the PSR-0 standard itself. My issues are purely practical, PSR-0 reduces flexibility and makes life more difficult for developers
</blockquote>
<p>
While he likes the idea of a standard way to be able to include third-party libraries that can be reused in multiple systems, he suggests that it answers the wrong question. In his view, it should be up to the library/tool developers to ensure the structure of their code to work with a standard, not the other way around. He points out that a "standard" is something that should apply to all situations and some of the workarounds that are needed for PSR-0 negate this idea.
</p>
<p>
In his alternative method, he suggests an "Autloadable" interface that can be implemented by the library/tool that includes a "load" method to handle the actual class loading. Then this autoloader would be registered via a json configuration file for the package. This allows the developer to control the loading and place any exceptions they might need into their own logic instead of trying to work around possible issues with the PSR-0 loading scheme.
</p>
<blockquote>
PSR-0 is a bad solution to a good problem. If you take anything from reading this post, remember this: If the standard defined how autoloaders could be extended, rather than how autoloaders worked, then each library or vendor could provide its own extension to the autoloader and everyone would be happy.
</blockquote>
Link: http://r.je/php-psr-0-pretty-shortsighted-really.html]]></description>
      <pubDate>Tue, 16 Apr 2013 13:12:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Phil Bennett: Do We Need a Framework For That? Or Hurry Up PHP-FIG]]></title>
      <guid>http://www.phpdeveloper.org/news/19442</guid>
      <link>http://www.phpdeveloper.org/news/19442</link>
      <description><![CDATA[<p>
In <a href="http://happyaccidents.me/blog/do-we-need-a-framework-for-that">this recent post</a> to his site, <i>Phil Bennett</i> shares some thoughts about the PHP-FIG, the standards they're proposing and how the shares interfaces might help reduce dependencies in framework-based applications.
</p>
<blockquote>
[Frameworks] come in several different flavours that all have huge advantages, but also a few disadvantages. Over engineered (because their popularity demands that they be), updated too often, not updated enough. If you decide for example to update your application from using Zend Framework 1 to using Zend Framework 2, this will more than likely require, at least in part, a re-write of your code. This makes scalability difficult.
</blockquote>
<p>
He talks some about the PSRs that the PHP-FIG group has proposed including the PSR-3 logging interface structure. He points out that, by having this same structure, it makes injecting dependencies easy while still leaving the actual functionality open to interpretation. He also suggests that maybe a framework isn't the right choice for all applications and that possibly using a collection of libraries, tied together by the PSR standards, could be a better answer.
</p>
Link: http://happyaccidents.me/blog/do-we-need-a-framework-for-that]]></description>
      <pubDate>Wed, 10 Apr 2013 13:38:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[iBuildings Blog: Verifying out software with OWASP ASVS]]></title>
      <guid>http://www.phpdeveloper.org/news/19399</guid>
      <link>http://www.phpdeveloper.org/news/19399</link>
      <description><![CDATA[<p>
On the iBuildings blog today there's a post from <i>Boy Baukema</i> about the <a href="http://blog.ibuildings.com/2013/03/21/verifying-software-with-owasp-asvs/">use of the OWASP ASVS</a> to help provide a framework of questions to ask about your application to help find any application security "pain points."
</p>
<blockquote>
When a customer commissions Ibuildings for a new application, he usually has plenty of functional demands. [...] And maybe some thoughts have been given to performance metrics, but security? Well… it "needs to be secure". [...] It is said, conveniently enough mostly by software engineers, that building software is perhaps the most complex activity humans have ever undertaken.
</blockquote>
<p>
He notes that "security is not a checkbox, it's a dropdown" and should be continuously considered continuously through out development. The <a href="https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project">OWASP ASVS</a> provides a structure that a development group can follow to test the security of their application. It defines 4 types of testing/validation and fourteen other topics to consider.
</p>
<blockquote>
While ASVS is a wonderful addition, it has it's issues: verification and reporting can take a significant amount of time and validation rules are not specific enough to use the tools and techniques.
</blockquote>]]></description>
      <pubDate>Tue, 02 Apr 2013 12:20:19 -0500</pubDate>
    </item>
    <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[Riding an Elefant: PHP-FIG's challenges, efficacy and attitude]]></title>
      <guid>http://www.phpdeveloper.org/news/19258</guid>
      <link>http://www.phpdeveloper.org/news/19258</link>
      <description><![CDATA[<p>
On the "Riding an Elefant" blog (for the <a href="http://www.elefantcms.com/">Elefant CMS</a>) there's <a href="http://ridinganelefant.tumblr.com/post/44223524737/php-figs-challenges-efficacy-and-attitude">a new post</a> that looks at some of the "challenges, efficacy and attitude" of the PHP-FIG (Framework Interoperability Group) surrounding their PSRs and general direction.
</p>
<blockquote>
First, I should state that I'm not a member of PHP-FIG. I applied to be a member representing the Elefant project, but saw projects with similarly-sized communities rejected, so I wasn't surprised at the lack of response to my application. However, I do agree with the general goals of the project and think it has a lot of potential if steered well. 
</blockquote>
<p>
He then spends a good bit of the post talking about the three PSRs (autoloading with PSR-0 and coding standards with PSR-1 & PSR-2) and how he thinks the PHP-FIG has some "public relations" issues they need to overcome as it relates to their reactions. 
</p>
<blockquote>
PHP-FIG has grown rapidly since its inception, and with that comes the need to reevaluate and adapt. The PHP community is huge, and a group hoping to represent even a substantial minority of it will have to practice diplomacy and clearly state its intentions if it doesn't want to be misunderstood or cause alienation amongst the wider community.
</blockquote>
<p>
There's also some good comments on <a href="http://ridinganelefant.tumblr.com/post/44223524737/php-figs-challenges-efficacy-and-attitude">the post</a> so be sure to check those out too</a>.
</p>]]></description>
      <pubDate>Fri, 01 Mar 2013 11:02:34 -0600</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[Smashing Magazine: Why Coding Style Matters]]></title>
      <guid>http://www.phpdeveloper.org/news/18661</guid>
      <link>http://www.phpdeveloper.org/news/18661</link>
      <description><![CDATA[<p>
On the Smashing Magazine site there's a new article talking about <a href="http://coding.smashingmagazine.com/2012/10/25/why-coding-style-matters/">coding style matters</a> with developing projects with multiple people (or even possible contributors in the future) involved.
</p>
<blockquote>
Coding style is how your code looks, plain and simple. And by "your," I actually mean you, the person who is reading this article. Coding style is extremely personal and everyone has their own preferred style. You can discover your own personal style by looking back over code that you've written when you didn't have a style guide to adhere to. Everyone has their own style because of the way they learned to code. 
</blockquote>
<p>
They talk about how everyone has their own personal "style" to their code and how, when working with a team, everyone needs to communicate and make sure their styles match. They also make a few recommendations for your code like leaving "clues" (comments) and making errors easier to spot. There's also a few links to tools that can help keep your code standardized including <a href="http://csslint.net/">CSS Lint</a> and the <a href="http://eclipseone.wordpress.com/2009/12/13/automatically-format-and-cleanup-code-every-time-you-save/">Eclipse code formatter</a>. PHP, of course, has its own - <a href="http://pear.php.net/package/PHP_CodeSniffer">PHP_CodeSniffer</a> with its own rules.
</p>]]></description>
      <pubDate>Fri, 26 Oct 2012 09:41:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones' Blog: PHP-FIG: PSR 1 and 2 Accepted]]></title>
      <guid>http://www.phpdeveloper.org/news/18048</guid>
      <link>http://www.phpdeveloper.org/news/18048</link>
      <description><![CDATA[<p>
As <i>Paul Jones</i> mentions in <a href="http://paul-m-jones.com/archives/2420">his latest post</a> to his site, the much talked-about PSR standards that were proposed by the PHP-FIG group, <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md">PSR-1</a> and <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">PSR-2</a>, have been accepted.
</p>
<blockquote>
Earlier today, the <a href="https://github.com/php-fig/fig-standards">PHP Framework Interoperability Group</a> accepted two standards recommendations. [...] There's been a lot of commentary about these proposals over the past two weeks, some of it positive and some of it negative.
</blockquote>
<p>
He <a href="http://paul-m-jones.com/archives/2420">includes links</a> to some of the commentary that's been made about the standards recently, and spends some time responding to some of the negative comments specifically, like:
</p>
<ul>
<li>What the hell is the "PHP Standards" group? I've never heard of it before now.
<li>Why are you guys so secretive and closed?
<li>So once I join the list, I can vote on PHP-FIG Standards Recommendations? Sweet!
<li>Whatever. I don't need you guys telling me what to do. If I don't want to follow your so-called "standards" then you can't make me.
</ul>]]></description>
      <pubDate>Tue, 05 Jun 2012 09:27:15 -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>
  </channel>
</rss>
