<?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, 18 Jun 2013 00:09:45 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Reddit.com: My new boss is convinced Symfony2 is not suitable for big projects...]]></title>
      <guid>http://www.phpdeveloper.org/news/19682</guid>
      <link>http://www.phpdeveloper.org/news/19682</link>
      <description><![CDATA[<p>
On Reddit.com there's a big discussion happening around a question asked about Symfony2 versus Zend Framework 2 - <a href="http://www.reddit.com/r/PHP/comments/1fq11x/my_new_boss_is_convinced_symfony2_is_not_suitable/">My new boss is convinced Symfony2 is not suitable for big projects. He wants us to start developing with ZF2. Should we?</a> Here's his story:
</p>
<blockquote>
I have worked with ZF1 and Symfony2. To me, Symfony2 is not only more productive (with all the CLI thingies), but is much more robust, modular... better in almost all ways. I don't know much about ZF2. I've read some comparatives (here in this subreddit as well as in a few articles), but got nowhere. I either need reasons to learn ZF2 (and start the new projects with all difficulties a newbie would encounter, which sounds overly tedious, I must say) or arguments to provide my boss with. Even opinions from people who know both frameworks.
</blockquote>
<p>
There's lots of different opinions shared in the comments ranging from pro-Symfony2, pro-ZF2 out to those that eschew both and opt for something lighter for their needs (like an advanced setup of Slim). 
</p>
Link: http://www.reddit.com/r/PHP/comments/1fq11x/my_new_boss_is_convinced_symfony2_is_not_suitable]]></description>
      <pubDate>Thu, 06 Jun 2013 13:13:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Goodbye CodeIgniter, Hello Laravel]]></title>
      <guid>http://www.phpdeveloper.org/news/19555</guid>
      <link>http://www.phpdeveloper.org/news/19555</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new post from <i>Daniel Gafitescu</i> that compares CodeIgniter (an "old standby" in the PHP framework world) and Laravel, a relative newcomer. The article is broken up into a few different categories, with some sample code included to illustrate.
</p>
<blockquote>
n the beginning of my career I stumble upon CodeIgniter and I love it for its simplicity, small footprint, and good documentation. [...] But last year, because of the Twitter buzz from some in the PHP community, blog posts, and the suggestions of some friends, I give Laravel 3 a try - and since that time I've never looked back. So, in this article I'd like to present a comparison of the two frameworks from my point of view.
</blockquote>
<p>
He compares the two frameworks based on things like the requirements to get them installed, how they handle creating REST APIs, the general organization of their code (and your code using them) as well as command line support. There's a "miscellaneous" section that talks about some of the smaller differences and a (very) brief mention of the communities for each.
</p>
Link: http://phpmaster.com/goodbye-codeigniter-hello-laravel]]></description>
      <pubDate>Tue, 07 May 2013 10:37:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: PHPUnit vs. Phake cheatsheet]]></title>
      <guid>http://www.phpdeveloper.org/news/19483</guid>
      <link>http://www.phpdeveloper.org/news/19483</link>
      <description><![CDATA[<p>
On DZone.com today <i>Giorgio Sironi</i> has posted a "cheat sheet" to help you correlate the functionality of two PHP unit testing tools - <a href="http://css.dzone.com/articles/phpunit-vs-phake-cheatsheet">PHPUnit vs Phake</a> (for mocking objects).
</p>
<blockquote>
Benjamin Eberlei introduced me to Phake with his recent article: it is a Composer-ready PHP library that integrates easily with PHPUnit and provides an independent Test Doubles framework, capable of producing Stubs, Mocks, and Spies. The syntax and object model reminds me of Mockito, the Java Test Double framework from the authors of Growing Object-Oriented Software. I like tools that do one thing and do it well, and after experimenting with Phake I'm using it on all new code. 
</blockquote>
<p>
He compares the two tools on a few different pieces of functionality including creating stubs, mocks and spies. Sample code is included for both sides. It's not a detailed guide by any means, but it can give you a better picture of how the two compare.
</p>
Link: http://css.dzone.com/articles/phpunit-vs-phake-cheatsheet]]></description>
      <pubDate>Fri, 19 Apr 2013 09:53:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Benjamin Eberlei: Traits are Static Access]]></title>
      <guid>http://www.phpdeveloper.org/news/19453</guid>
      <link>http://www.phpdeveloper.org/news/19453</link>
      <description><![CDATA[<p>
In a new post to his site <i>Benjamin Eberlei</i> shares an opinion about traits, noting that they're <a href="http://www.whitewashing.de/2013/04/12/traits_are_static_access.html">basically the same as static functionality</a> when it comes to several things like coupling, not being testable and being a "global state" container.
</p>
<blockquote>
I used to look forward to traits as a feature in PHP 5.4, but after discussions with Kore I came to the conclusion that traits are nothing else than static access in disguise. They actually lead to the exact same code smells. Familiar with the outcome of too much static use, we should reject traits as just another way of statically coupling your code to other classes.
</blockquote>
<p>
He includes some code examples showing traits in use in an example controller to handle a simple redirect. He points out at least six different issues with just this simple implementation. He rewrites it as "static" code to help prove his point. He comes to the conclusion that, much like static methods, traits should be avoided and instead aggregation should be favored.
</p>
Link: http://www.whitewashing.de/2013/04/12/traits_are_static_access.html]]></description>
      <pubDate>Fri, 12 Apr 2013 11:16:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Adam Bard: The Same App 4 Times: PHP vs Python vs Ruby vs Clojure]]></title>
      <guid>http://www.phpdeveloper.org/news/19370</guid>
      <link>http://www.phpdeveloper.org/news/19370</link>
      <description><![CDATA[<p>
<i>Adam Bard</i> has written up a post that takes the same small application (a "Nurblizer") and writes it as a web application <a href="http://adambard.com/blog/PHP-ruby-python-clojure-webapps-by-example/">in four different languages</a> - PHP, Python, Ruby and Clojure. His point is less about which is "best" but more to show the differences between them.
</p>
<blockquote>
Here's a toy program I wrote implemented in PHP, Python, Ruby, and Clojure. I hope it's helpful for someone who knows at least one of those and wants to learn another.
The program is called "Nurblizer", and it does one thing: Accept free-form text, and attempt to replace all words but the nouns in said text with the word "nurble". It's up and running at <a href="http://nurblizer.herokuapp.com">http://nurblizer.herokuapp.com</a>
</blockquote>
<p>
He includes the source for each language's version using Sinatra for Ruby and Flask for Python but for PHP and Clojure it's just straight code. For each he briefly explains what its doing and a bit about how it relates to the examples from the other languages. He also points out <a href="https://news.ycombinator.com/item?id=5440170">a Hacker News discussion</a> that's popped up about the examples.
</p>]]></description>
      <pubDate>Wed, 27 Mar 2013 09:13:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lee Blue: PHP vs Ruby :: 2012 Year End Review]]></title>
      <guid>http://www.phpdeveloper.org/news/18712</guid>
      <link>http://www.phpdeveloper.org/news/18712</link>
      <description><![CDATA[<p>
In <a href="http://leehblue.com/php-vs-ruby-2012-year-end-review/">this new post</a> <i>Lee Blue</i> has gone through and compared Ruby and PHP in a "year end review" of their current statuses and what each of them have to offer:
</p>
<blockquote>
Now that I've been working with Ruby in much more depth and both PHP and Ruby have matured dramatically over the past five years it is time to reevaluate the comparison. The previous article was primarily centered around the languages themselves and was not a showdown between any particular frameworks. In this review we will touch a bit more on frameworks, but in the context of a high level review of the two different landscapes of PHP vs Ruby for web development. We will not be getting down to feature-by-feature detail.
</blockquote>
<p>
He talks a bit about the history and purpose of each of the languages and a good bit about the web frameworks that are available for each (hint: the PHP options are quite a bit more). He also talks about web hosting vs web application hosting and then compares the two languages with a "score card". 
</p>
<blockquote>
The bottom line, as always, is pick the solution that is right for you and your development team. My hope is that this article was helpful in shedding some light on the strengths of both PHP and Ruby, spreading the word about what is available to both languages, and helping you decide what is right for your next project.
</blockquote>]]></description>
      <pubDate>Wed, 07 Nov 2012 13:35:56 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[QaFoo Blog: Abstract Classes vs. Interfaces]]></title>
      <guid>http://www.phpdeveloper.org/news/18544</guid>
      <link>http://www.phpdeveloper.org/news/18544</link>
      <description><![CDATA[<p>
On the QaFoo.com blog <i>Kore Nordmann</i> shares some insight about the difference between <a href="http://qafoo.com/blog/026_abstract_classes_vs_interfaces.html">abstract classes and interfaces</a> and how they can be used effectively/correctly.
</p>
<blockquote>
Features of object oriented languages are often use from a purely technical perspective, without respect to their actual semantics. This is fine as long as it works for you, but might lead to problems in the long run. In this article I discuss the semantical differences between abstract classes and interfaces. I also outline why following the semantics of those language constructs can lead to better code.
</blockquote>
<p>
He defines "class" and "interface" before he gets too far into the differences, stating that a "class" is more of a "type" while an "interface" describes the type and the structure to use it. He also talks about how to tell them apart (when to use each). There's also some examples and "hints" to help you determine good and bad examples of interfaces and when an abstract class might be a better answer.
</p>]]></description>
      <pubDate>Tue, 02 Oct 2012 12:29:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint: WordPress v Joomla: Support and Community]]></title>
      <guid>http://www.phpdeveloper.org/news/18345</guid>
      <link>http://www.phpdeveloper.org/news/18345</link>
      <description><![CDATA[<p>
Without a doubt, two of the most popular PHP-based projects out there are WordPress and Joomla. In <a href="http://www.sitepoint.com/wordpress-v-joomla-support-and-community">this new post</a> from SitePoint they compare the two on the basis of both their support and community (part 4 of a 5 part series).
</p>
<blockquote>
Let's face it, an open-source content management system without a thorough user base, support system and community is destined for failure.  We are comparing two giants in the CMS game here, so we already know they must be doing many things right in these departments. In this part of our series, we're going to be covering exactly what Joomla and WordPress have to offer when it comes to the support community.
</blockquote>
<p>
Their comparison includes things like: WordPress.org vs Joomla.org, their respective support forums, other initiatives surrounding them and places you can find others to help you in your WordPress or Joomla work.
</p>]]></description>
      <pubDate>Fri, 10 Aug 2012 10:52:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web and PHP Development: Laravel vs Codeigniter]]></title>
      <guid>http://www.phpdeveloper.org/news/18243</guid>
      <link>http://www.phpdeveloper.org/news/18243</link>
      <description><![CDATA[<p>
On the Web and PHP Development site there's <a href="http://www.web-and-development.com/laravel-vs-codeigniter/">a recent post</a> by <i>John Skoumbourdis</i> comparing the <a href="http://codeigniter.com">CodeIgniter</a> framework with one of the up and coming frameworks that's been getting more press lately - <a href="http://laravel.com">Laravel</a>.
</p>
<blockquote>
I just came across with two posts for Laravel Framework with two different opinions
<a href="http://philsturgeon.co.uk/blog/2012/05/laravel-is-awesome">Laravel is awesome</a> and <a href="http://www.vladstudio.com/blog/entry.php?124">Laravel - a beautiful PHP framework that does not make me feel stupid</a> but with the same conclusion (Laravel is awesome!). As both blog posts where intrested, I would like to have my opinion too with the Laravel framework and Codeigniter.
</blockquote>
<p>
He answers to main questions in response to the "awesome" claims - "which is the more awesome?" and "Is CodeIgniter dead?" You'll have to <a href="http://www.web-and-development.com/laravel-vs-codeigniter/">read the post</a> to find out his answers, though!
</p>]]></description>
      <pubDate>Wed, 18 Jul 2012 12:44:20 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPEasy.co.uk: Sorting array data using SplMaxHeap]]></title>
      <guid>http://www.phpdeveloper.org/news/18239</guid>
      <link>http://www.phpdeveloper.org/news/18239</link>
      <description><![CDATA[<p>
On PHPEasy.co.uk today there's a new tutorial posted showing you how to <a href="http://phpeasy.co.uk/sorting-array-data-using-splmaxheap/">sort using the SplMaxHeap</a> functionality provided by the <a href="http://php.net/spl">Standard PHP Library</a>.
</p>
<blockquote>
The SplMaxHeap class basically stores numbers in any order, and then returns them in descending order. In order to make this class useful for other data types other than numbers I have extend the SplMaxHeap class to compare dates and strings. SplMaxHeap extends SplHeap and implements the abstract class SplHeap::compare. Our extention of SplMaxHeap is therefore expected to implement the compare method.
</blockquote>
<p>
Code examples are given showing sorting by things like "last name" and "date of birth" (using <a href="http://php.net/strtotime">strtotime</a>). There's also an example of its use in sorting values from an array and outputted in a loop. You can find out more about this functionality in <a href="http://php.net/SplMaxHeap">the PHP manual</a>.
</p>]]></description>
      <pubDate>Wed, 18 Jul 2012 08:17:25 -0500</pubDate>
    </item>
  </channel>
</rss>
