<?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>Mon, 21 May 2012 10:45:35 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ibuildings techPortal: DPC Radio: Clean PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17718</guid>
      <link>http://www.phpdeveloper.org/news/17718</link>
      <description><![CDATA[<p>
On the Ibuildings techPortal today they've published the latest in their DPC Radio podcast series, sessions as recorded at the 2011 edition of the <a href="http://phpconference.nl">Dutch PHP Conference</a>. In <a href="http://techportal.ibuildings.com/2012/03/22/dpc-radio-clean-php/">this latest episode</a> <i>Sebastian Bergmann</i> talks about "Clean PHP".
</p>
<blockquote>
Even bad code can function. But if code isn't clean, it can bring a development organization to its knees. Every year, countless hours and significant resources are lost because of poorly written code. But it doesn't have to be that way. In this session you will learn how you can offset your technical debt with clean code that is readable and testable as well as reusable.
</blockquote>
<p>
You can listen to this latest session either using the <a href="http://techportal.ibuildings.com/2012/03/22/dpc-radio-clean-php/">in-page player</a> or by <a href="http://dpcradio.s3.amazonaws.com/2011_003.mp3">downloading the mp3 directly</a>. The slides (for a similar version of the presentation) can be found <a href="http://www.slideshare.net/sebastian_bergmann/clean-php-confoo-2011">on Slideshare</a>.
</p>]]></description>
      <pubDate>Thu, 22 Mar 2012 14:37:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rafael Dohms' Blog: Book Review: The Art of Readable Code]]></title>
      <guid>http://www.phpdeveloper.org/news/17604</guid>
      <link>http://www.phpdeveloper.org/news/17604</link>
      <description><![CDATA[<p>
<i>Rafael Dohms</i> has posted <a href="http://blog.doh.ms/2012/02/27/book-review-art-of-readable-code/">a new review of a book</a> that focuses on helping you create better, more readable code - "The Art of Readable Code" (<i>Dustin Boswell</i>, <i>Trevor Foucher</i>, O'Reilly). This is isn't about "pretty code" as much as it is manageable, easy to follow structures and logic flows.
</p>
<blockquote>
"The Art of Readable Code" was written by Dustin Bowell and Trevor Foucher and basically focuses on concepts and suggestions to make you code not just readable, but comprehendible by other developers, or as the author's suggest, yourself in six months. Code readability is a topic that I truly believe the PHP community does not focus enough on and i really wanted a look at this book to see what kind of ideas it had and what I could do my best to bring to the attention of other developers.
</blockquote>
<p>
The book is language-agnostic and provides ideas that developers should keep in mind when doing their development - clear variable names, making comments that make sense, refactoring tips and hints for implementing your ideas in code. He recommends the book to any developer (in any language) to help them make code that will stand the test of time and be easier to manage/understand in the future.
</p>]]></description>
      <pubDate>Wed, 29 Feb 2012 10:41:12 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: Writing clean code in PHP 5.4]]></title>
      <guid>http://www.phpdeveloper.org/news/17579</guid>
      <link>http://www.phpdeveloper.org/news/17579</link>
      <description><![CDATA[<p>
With the first stable release of PHP 5.4 not too far off, it's important to understand the new features it offers and how to use them effectively. In <a href="http://css.dzone.com/articles/writing-clean-code-php-54">this new post</a> to DZone.com <i>Giorgio Sironi</i> shows how to "write clean code" with these new features, including a few snippets of code to illustrate.
</p>
<blockquote>
After seven release candidates, it's clear PHP 5.4 is coming: as always the improvements from the previous minor version are many. [...] Let's look at the new features and score them on two metrics: usefulness, and potential for abuse. I'll try to avoid discussing non-language related matters.
</blockquote>
<p>
He starts by pointing out some of the "gotchas" that can happen with traits (like errors thrown when more than one method is named the same and that they are a separate hierarchy), the short syntax and dereferencing support for arrays, closure binding, upload progress and more. For each of them he gives two measurements - the usefulness of the feature and the potential for abuse.
</p>]]></description>
      <pubDate>Thu, 23 Feb 2012 12:08:18 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Perforce Software: Seven Pillars of Pretty Code]]></title>
      <guid>http://www.phpdeveloper.org/news/14403</guid>
      <link>http://www.phpdeveloper.org/news/14403</link>
      <description><![CDATA[<p>
As linked to <a href="http://paul-m-jones.com/archives/1324">by Paul Jones</a> there's an interesting whitepaper that's been published by Perforce Software about what they see as the <a href="http://www.perforce.com/perforce/papers/prettycode.html">Seven Pillars of Pretty Code</a>.
</p>
<blockquote>
The essence of pretty code is that one can infer much about the code's structure from a glance, without completely reading it. I call this "visual parsing": discerning the flow and relative importance of code from its shape. Engineering such code requires a certain amount of artifice to transform otherwise working code into working, readable code, making the extra step to leave visual cues for the user, not the compiler.
</blockquote>
<p>
The goal of these recommendations isn't to help you structure your code better or to optimize it for the best performance. The goal is to make code that is easy to follow and simpler to read for both the experienced developers and those just coming in.
</p>
<p>
Their suggestions include making the code blend in, keeping the code "untangled", including plenty of comments and reducing clutter overall.
</p>]]></description>
      <pubDate>Fri, 23 Apr 2010 12:08:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Francois Zaninotto's Blog: Introducing Code Usability]]></title>
      <guid>http://www.phpdeveloper.org/news/12460</guid>
      <link>http://www.phpdeveloper.org/news/12460</link>
      <description><![CDATA[<p>
<i>Francois Zaninotto</i> has <a href="http://totalusability.posterous.com/introducing-code-usability">a recent post</a> looking at something every developer should consider when creating their applications - especially the libraries that might be used by other developers: code usability.
</p>
<blockquote>
Usability guidelines can sometimes be of use in awkward places. I try to apply them to source code. [...] Of course, coding guidelines are there to make the code easy to read by everyone. But code usability goes somehow beyond. Let's see some of the differences.
</blockquote>
<p>He compares good versus bad code in a few different areas:</p>
<ul>
<li>Bad Code Comments
<li>Split Up Code
<li>Cleanliness
<li>New Conventions
<li>Listen To User Feedback
</ul>
<p>
Each item is described, some including code examples to help make them more clear. Be sure to check out <a href="http://totalusability.posterous.com/introducing-code-usability#comments">the comments</a> for more good suggestions.
</p>]]></description>
      <pubDate>Tue, 05 May 2009 13:48:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SocialGeek.be: Clean urls through readable slugs in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11685</guid>
      <link>http://www.phpdeveloper.org/news/11685</link>
      <description><![CDATA[<p>
On the SocialGeek blog there's a <a href="http://www.socialgeek.be/blog/read/clean-urls-through-readable-slugs-in-php">recent post</a> that looks at making stubs for your URLs, making them easier to read and remember.
</p>
<blockquote>
This is where the fun begins of course. How many times have you been confronted with someone sending you an indecipherable, thus untrustworthy link? Right, so we agree that for a user, it is important to have a clean URL that is readable and includes the title of the page or (at least) some description related to the content. Slug time! 
</blockquote>
<p>
They explain what slugs are (and how they're useful for users) as well as how to convert a title into a "slugged" string by replacing anything that's not an A-Z or 0-9 character to remove the less URL friendly characters.
</p>]]></description>
      <pubDate>Tue, 06 Jan 2009 14:28:16 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP Security Blog: Holes in most preg_match() filters]]></title>
      <guid>http://www.phpdeveloper.org/news/7558</guid>
      <link>http://www.phpdeveloper.org/news/7558</link>
      <description><![CDATA[<p>
On the PHP Security Log today, <i>Stefan Esser</i> points out <a href="http://blog.php-security.org/archives/76-Holes-in-most-preg_match-filters.html">some holes</a> in most of the filters using preg_match that he's seen in examples and the like all around the web. Some of these things could cause issues that could breach the security of your application.
</p>
<blockquote>
<p>
During the last week I was performing some audits and like so often it contained preg_match() filters that were not correct. Most PHP developers use ^ and $ within their regular expressions without actually reading the documentation about what they really achieve.
</p>
<p>
However the problem is, that the author of such a regular expression did not correctly read the documentation and mistakes the $ character for the definitive end of the subject.
</p>
</blockquote>
<p>
According to <i>Stefan</i>, the actual documentation for the $ character in a regular expression isn't quite used that way. It does mean "the end" of the match but it can also match against a newline as well. His suggestions? Use the /D modifier on the end of the expression to match the real "the end" and not how it might match otherwise.
<p>]]></description>
      <pubDate>Wed, 04 Apr 2007 07:15:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: OgoProject Wants to Clean Up PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6842</guid>
      <link>http://www.phpdeveloper.org/news/6842</link>
      <description><![CDATA[<p>
There are some PHP developers out there that see PHP as a sort of constant "work in progress" with issues all around - confusing function names, non-intuitive features, and more. So, a group has been formed to help clean things up a bit - the <a href="http://www.ogoproject.com/">ogoproject</a>.
</p>
<blockquote>
The ogo project aims to clean up PHP, starting with fixing the inconsistent (and difficult to remember) function names. PHP needs clear naming conventions, and it needs to stick to them. We will offer a temporary fork until function name changes are agreed on, and sensible backwards and forwards compatibility is in place. Then we can get our changes merged into the main branch.
</blockquote>
<p>
They've already posted some suggestions for a few things, including <a href="http://www.ogoproject.com/pages/conventions">conventions they're looking to follow</a> and <a href="http://www.ogoproject.com/functions/">a list of new function names</a> changed according to these new conventions. There's also a <a href="http://www.ogoproject.com/pages/downloads">downloads</a> and <a href="http://www.ogoproject.com/pages/soon">forum</a> section that will soon have content.
</p>
<p>
If you're interested in getting involved, stop by the #ogoproject channel on the <a href="http://www.freenode.org">Freenode</a> IRC network and see what's going on.
</p>]]></description>
      <pubDate>Thu, 07 Dec 2006 07:53:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[True Hacker! Blog: Digg style clean URLs with PHP and Apache]]></title>
      <guid>http://www.phpdeveloper.org/news/6790</guid>
      <link>http://www.phpdeveloper.org/news/6790</link>
      <description><![CDATA[<p>
The 'true hacker!' blog has <a href="http://truehacker.blogspot.com/2006/11/digg-style-clean-urls-with-php-and.html">a new post</a> today that gives you a quick four step process for creating some clean, Digg-style URLs for your site with some simple Apache configuration changes (mod_rewrite).
</p>
<blockquote>
You might have noticed that Digg has a cool way of maintaining clean URLs. Digg actually uses LAMP - Linux/Apache/MySQL/PHP. But where are the .php extensions? The answer is here. 4 steps to implement your own Digg style clean URLs.
</blockquote>
<p>
<a href="http://truehacker.blogspot.com/2006/11/digg-style-clean-urls-with-php-and.html">His method</a> turns on Apache's rewrite engine (you do have mod_rewrite enabled, don't you?) and adds a rule to push all of the requests to two default PHP files. There's also a ForceType method that can be used to achieve the same effect. One .htaccess file later, you're in business and the PHP script only needs to access the $_SERVER['REQUEST_URI'] value to get the parameters.
</p>]]></description>
      <pubDate>Wed, 29 Nov 2006 09:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Pimping Xdebug stack traces]]></title>
      <guid>http://www.phpdeveloper.org/news/6439</guid>
      <link>http://www.phpdeveloper.org/news/6439</link>
      <description><![CDATA[<p>
Bothered by the ugly way Xdebug stack traces were turing out, <i>Derick Rethans</i> has <a href="http://derickrethans.nl/pimping_xdebug_stack_traces.php">created a script</a> to fix that.
</p>
<blockquote>
I've always been annoyed by the way how Xdebug's stack traces looked liked. So I spend some time on making them look better. I will show the differences according to the following script.
</blockquote>
<p>
The <a href="http://derickrethans.nl/pimping_xdebug_stack_traces.php">simple script</a> takes the output and adds a bit of formatting, stripping down the information to make it a bit more clear. Check out the <a href="http://derickrethans.nl/images/content/old.scaled.png">before</a> and <a href="http://derickrethans.nl/images/content/new.scaled.png">after</a> shots to see the difference.
</p>]]></description>
      <pubDate>Fri, 06 Oct 2006 08:41:00 -0500</pubDate>
    </item>
  </channel>
</rss>

