<?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>Wed, 19 Jun 2013 21:01:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney: My ZendCon Beautiful Software Talk]]></title>
      <guid>http://www.phpdeveloper.org/news/18767</guid>
      <link>http://www.phpdeveloper.org/news/18767</link>
      <description><![CDATA[<p>
<i>Matthew Weier O'Phinny</i> has a new post to his site today sharing the <a href="http://mwop.net/blog/2012-11-17-zendcon-beautiful-software.html">video and slides</a> from his "Beautiful Code" talk from this year's <a href="http://zendcon.com">ZendCon</a> conference.
</p>
<blockquote>
Unusually for me, I did not speak on a Zend Framework topic, and had only one regular slot (I also co-presented a Design Patterns tutorial with my team). That slot, however, became one of my favorite talks I've delivered: "Designing Beautiful Software". I've given this talk a couple times before, but I completely rewrote it for this conference in order to better convey my core message: beautiful software is maintainable and extensible; writing software is a craft.
</blockquote>
<p>
You can find the slides for his presentation <a href="http://mwop.net/slides/2012-10-25-BeautifulSoftware/BeautifulSoftware.html">on his site</a> as well.
</p>]]></description>
      <pubDate>Mon, 19 Nov 2012 11:52:19 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Fabien Potencier's Blog: Developers should be Artists]]></title>
      <guid>http://www.phpdeveloper.org/news/13113</guid>
      <link>http://www.phpdeveloper.org/news/13113</link>
      <description><![CDATA[<p>
<i>Fabien Potencier</i> <a href="http://fabien.potencier.org/article/32/developers-should-be-artists">has a suggestion</a> for developers out there - don't just look at what you write as something functional that just does a job, be an artist!
</p>
<blockquote>
Hacking is an art, and hackers should act as artists. Hackers and painters have a lot in common but I won't talk about the analogy too much as Paul Graham wrote an excellent <a href="http://www.paulgraham.com/hp.html">essay</a> and a whole <a href="http://www.paulgraham.com/hackpaint.html">book</a> on this topic. I recommend you to read both of them if you are a hacker or a developer.
</blockquote>
<p>
He points out that "beautiful code" is a good thing - unfortunately developers for companies may not have the luxury of writing it. He does suggest hacking on your own time, though. Not only is it good for you, getting out those ideas into working code, but it can also positively effect the applications you develop at your work.
</p>
]]></description>
      <pubDate>Wed, 26 Aug 2009 10:17:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP in Action: More beautiful code]]></title>
      <guid>http://www.phpdeveloper.org/news/11376</guid>
      <link>http://www.phpdeveloper.org/news/11376</link>
      <description><![CDATA[<p>
Continuing on from a previous post, the PHP in Action blog <a href="http://www.reiersol.com/blog/1_php_in_action/archive/169_more_beautiful_code.html">takes another look</a> at their suggestions on "beautiful code" with some responses to the <A href="http://www.reiersol.com/blog/1_php_in_action/archive/168_beautiful_code.html">previous post</a>.
</p>
<blockquote>
I got some interesting comments to my previous post on "beautiful code". Some were pretty strong disagreements. So am I wrong? Did I get carried away? Did my critical faculty go on vacation somewhere nice and sunny? [...] My main point is that it's close to plain English. Not everyone agrees that that's a good thing, but I argue that we're built (genetically wired, in fact) to understand natural languages, not program code.
</blockquote>
<p>
He reasons that code should be easier to understand than just a bunch of random functions and parameters jumbled together. He thinks that it should read more like a human could understand rather than just the machine. With function names like "assertThat" and "hasSelect", it does make it easier to follow.
</p>]]></description>
      <pubDate>Mon, 10 Nov 2008 10:25:34 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Marco Tabini's Blog: The violin-playing software designer]]></title>
      <guid>http://www.phpdeveloper.org/news/10857</guid>
      <link>http://www.phpdeveloper.org/news/10857</link>
      <description><![CDATA[<p>
In <a href="http://mtabini.blogspot.com/2008/08/violin-playing-software-designer.html">this new post</a> to his blog <i>Marco Tabini</i> eloquently explains something that less and less seem to be able to understand - the tool is only a means to an end. It's more about the artist and the end result than the tool.
</p>
<blockquote>
What is beautiful code? Ask ten people, and you will probably get ten different answers. Ask them what makes a programming language beautiful, and you've got yourself the beginnings of a holy war.
</blockquote>
<p>
He compares code to art - the language is just a tool, the canvas an editor waiting to be filled with lines of artist-generated works. Because of PHP's wonderful flexibility, it can be molded to fit just about any need a coder might see fit and gives them the power they need to really dig into the code and about the "paint by numbers" sort fo things language like Ruby have to offer.
</p>]]></description>
      <pubDate>Tue, 19 Aug 2008 12:03:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Felix Geisendorfer's Blog: Making error handling for Model::save more beautiful in CakePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7229</guid>
      <link>http://www.phpdeveloper.org/news/7229</link>
      <description><![CDATA[<p>
In a <a href="http://www.thinkingphp.org/2007/02/03/making-error-handling-for-modelsave-more-beautiful-in-cakephp/">new post</a> to his blog today, <i>Felix Geisendorfer</i> shares a method to make error handling in the CakePHP model functionality a bit more "beautiful".
</p>
<blockquote>
Now I've written actions like the one above in the past as well. It's just that I've not had many MySql errors since I've switched to CakePHP. The Model class usually handles all the DB operations flawlessly and it's probably been over a year that I've written a custom MySql statement in my code somewhere. However, even CakePHP or, what's more likely, the database can fail or deny operations.
</blockquote>
<p>
He shows some code snippets of what he sees as less beautiful versions of database insertion code, methods that either don't check the response/errors or make a messy job of it. His solution works by returning the result into a switch statement to check the results and handling it there (versus a series of ifs). There's a class you'll need to make it work (Common), but he shows how to use it and creates a simple "add" example with it and a new Controller to handle the request.
</p>]]></description>
      <pubDate>Tue, 06 Feb 2007 10:05:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Code is Beautiful]]></title>
      <guid>http://www.phpdeveloper.org/news/5197</guid>
      <link>http://www.phpdeveloper.org/news/5197</link>
      <description><![CDATA[<p>
In <a href="http://feeds.feedburner.com/ZendDeveloperZone?m=50">this post</a> from the Zend Developer Network, there's some talk about a web service that can be useful to any PHP developer out there - new to the language or not. Bad coding practices can lead to hard to read code, the worst of them is not formating your code correctly. Thankfully, there's <a href="http://formatter.gerbenvv.nl/version3/index.php?lang=en">PHPFormatter</a> to help out.
</p>
<quote>
<i>
Using this service, you can upload your code, beautiful or crappy and it will format it for you. If you don't bother to register, you can choose from several of the standard formats like PEAR, BSD or GNU style formatting. If you register with the site (free) you can define your own style.
</i>
</quote>
<p>
<i>Cal</i> also includes some of the reasons the PHPFormatter crew give for making code beautiful, including bringing a project's code up to your current style or fixing a downloaded, unreadable script. You can also use it to format your code to fit with the PEAR style.
</p>]]></description>
      <pubDate>Tue, 18 Apr 2006 13:13:57 -0500</pubDate>
    </item>
  </channel>
</rss>
