<?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, 22 May 2012 12:06:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Tom Barrett's Blog: WordPress is more than a CMS, it is a PHP Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/17948</guid>
      <link>http://www.phpdeveloper.org/news/17948</link>
      <description><![CDATA[<p>
<i>Tom Barrett</i> has a new post that shares an opinion he has about <a href="http://wordpress.org">WordPress</a> and what it can be used for - that the popular software is more than just a blog, <a href="http://www.tcbarrett.com/2012/05/wordpress-is-more-than-a-cms-it-is-a-php-framework/">it's a PHP framework</a>.
</p>
<blockquote>
A software library is a collection of resources used to develop software.  [...] A Software Framework is a software library with certain goals in mind [...]. Hopefully theme and plugin developers will be familiar enough with WordPress to see where I am going with this.
</blockquote>
<p>
He mentions some of the similarities WordPress has with other PHP frameworks including the integration of hooks/filters/plugins, working with core files that are maintained by an external entity and that it's a full-functional CMS out of the box.
</p>
<blockquote>
From this, I conclude that WordPress is a framework. It provides us with a library of resources that allow us to extend and specialize it into the site and CMS that we want.
</blockquote>]]></description>
      <pubDate>Fri, 11 May 2012 12:10:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: 5 ways how PHP is better than Node.js]]></title>
      <guid>http://www.phpdeveloper.org/news/17863</guid>
      <link>http://www.phpdeveloper.org/news/17863</link>
      <description><![CDATA[<p>
In what's sure to be a "flame bait" kind of post, <i>Jani Hartikainen</i> has posted <a href="http://codeutopia.net/blog/2012/04/24/5-ways-how-php-is-better-than-node-js/">five reasons PHP is better than Node.js</a> - some simple one-liners and others a bit more complicated.
</p>
<blockquote>
All hail Node.js! Boo PHP! Except there are various things where PHP is better than Node…
</blockquote>
<p>His five reasons are:</p>
<ul>
<li>Easier to find hosting
<li>It's easier to get started with PHP
<li>If your PHP code breaks, it doesn't bring your whole server down
<li>PHP processes are short lived
<li>Bigger standard library
</ul>
<p>
There's a few comments on the post already, one noting that some of the points could be turned around to make PHP fall more on the "bad" side.
</p>]]></description>
      <pubDate>Wed, 25 Apr 2012 09:13:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[A Cloudy Place: PHPFog and Pagoda Box: A Look at PHP Platforms]]></title>
      <guid>http://www.phpdeveloper.org/news/17645</guid>
      <link>http://www.phpdeveloper.org/news/17645</link>
      <description><![CDATA[<p>
On the "A Cloudy Place" blog there's <a href="http://acloudyplace.com/2011/12/phpfog-and-pagoda-box-a-look-at-php-platforms/">a recent post</a> comparing two of the more popular platform-as-a-service PHP offerings out there - <a href="http://phpfog.com">PHPFog</a> and <a href="http://pagodabox.com">PagodaBox</a>.
</p>
<blockquote>
Platform services like Heroku and AppEngine have been well-known for the last few years and many companies have been using them successfully in their business. They are more attractive to startups, due to low initial cost and smaller headaches involved in setup. 2011 was a great year for platform services, with the emergence of many platform services and a new trend for supporting multiple languages instead of supporting a single language. [...]  Here, I will go through two of the PHP platform services I have experimented with: PHPFog and Pagoda Box.
</blockquote>
<p>
He talks about each of the options and looks at several key elements of each including the deployment process, scalability, monitoring tools, offerings for caching and the database management utilities bundled with the application. Both services offer a "free instance" for you to try out their services, so give them both a try and see what you think.
</p>]]></description>
      <pubDate>Thu, 08 Mar 2012 09:29:45 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: PDO vs. MySQLi: Which Should You Use?]]></title>
      <guid>http://www.phpdeveloper.org/news/17572</guid>
      <link>http://www.phpdeveloper.org/news/17572</link>
      <description><![CDATA[<p>
On the NetTuts.com site today there's <a href="http://net.tutsplus.com/tutorials/php/pdo-vs-mysqli-which-should-you-use/">a quick tutorial</a> comparing two of the main database access methods available to PHP developers - PDO and MySQLi - based on performance and features they each have.
</p>
<blockquote>
When accessing a database in PHP, we have two choices: <a href="http://www.php.net/manual/en/book.mysqli.php">MySQLi</a> and <a href="http://www.php.net/manual/en/book.mysqli.php">PDO</a>. So what should you know before choosing one? The differences, database support, stability, and performance concerns will be outlined in this article.
</blockquote>
<p>
The article starts with a summary of what each of the tools offers as far as features, things like the API to work with the interface, difficulty of making connections, use of prepared statements and performance. This is followed by a few code examples showing the same actions on each side:
</p>
<ul>
<li>Making a new connection
<li>Databases supported (PDO has drivers)
<li>Named parameters
<li>Object mapping
<li>Security
<li>Performance
</ul>
<blockquote>
Ultimately, PDO wins this battle with ease. With support for twelve different database drivers (eighteen different databases!) and named parameters, we can ignore the small performance loss, and get used to its API. From a security standpoint, both of them are safe as long as the developer uses them the way they are supposed to be used (read: prepared statements).
</blockquote>]]></description>
      <pubDate>Wed, 22 Feb 2012 11:58:59 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: The Great Web Framework Shootout]]></title>
      <guid>http://www.phpdeveloper.org/news/17567</guid>
      <link>http://www.phpdeveloper.org/news/17567</link>
      <description><![CDATA[<p>
<i>Seth Davis</i> has put together <a href="https://github.com/seedifferently/the-great-web-framework-shootout">a github repository</a> with some benchmarking for some of the most common web frameworks - both PHP and not. His statistic is "requests per second" in a few scenarios: a "hello world" string test, a test with a database connection and one with a templated response.
</p>
<blockquote>
It should also be noted that my goal here was not necessarily to figure out how fast each framework could perform at its most optimized configuration (although built-in caching and other performance tweaks were usually enabled if the default configuration permitted it), but rather to see what a minimal "out-of-the-box" experience would look like.
</blockquote>
<p>
Current results (as summed up in <a href="https://github.com/seedifferently/the-great-web-framework-shootout/blob/master/README.rst">the current README</a>) are for frameworks that include:
</p>
<ul>
<li>Pyramid (Python)
<li>Django (Python)
<li>Sinatra (Ruby)
<li>CodeIgniter (PHP)
<li>Yii (PHP)
<li>Symfony (PHP)
</ul>CakePHP (PHP)]]></description>
      <pubDate>Tue, 21 Feb 2012 11:03:40 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[LearnComputer.com: PHP Training: Online vs. Classroom]]></title>
      <guid>http://www.phpdeveloper.org/news/17488</guid>
      <link>http://www.phpdeveloper.org/news/17488</link>
      <description><![CDATA[<p>
On the LearnComputer.com site there's a new post comparing the benefits/downfalls of <a href="http://www.learncomputer.com/php-training-online-vs-classroom/">online versus classroom learning</a> of PHP development. They list a few advantages and disadvantages of each.
</p>
<blockquote>
There can be many factors in the decision to learn PHP online or to take a class in-person, and for some, this can be a difficult decision to make. This article discusses the pros and cons of each method of PHP training to help you find the learning method that is going to suit your needs best. PHP isn't a new programming language, and there is a wealth of information on it on the web for every level of proficiency. The question is whether these resources alone are sufficient to get you up-and-running with PHP quickly.
</blockquote>
<p>
For the "online" section advantages include flexible schedules and more up to date content. The disadvantages are things like a prerequisite knowledge of using computers/the training software and that the instructor might only have "set hours" to answer questions and offer help. The "classroom" option advantages include the motivation of a regular meeting time and fewer technology hurdles to overcome. Disadvantages include the need for a time/in-person commitment and that the focus might be higher level than needed to appeal to a more mass audience.
</p>]]></description>
      <pubDate>Thu, 02 Feb 2012 11:22:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Wojciech Sznapka's Blog: Modern frameworks comparison]]></title>
      <guid>http://www.phpdeveloper.org/news/17420</guid>
      <link>http://www.phpdeveloper.org/news/17420</link>
      <description><![CDATA[<p>
In <a href="http://blog.sznapka.pl/modern-frameworks-comparison/">this new post</a> to his blog <i>Wojciech Sznapka</i> compares three different frameworks - Symfony2 (PHP), Django (Python) and Ruby on Rails  (Ruby) - in their request handling performance, lines of code and average community on Github.
</p>
<blockquote>
If you ask me, which one is the best - I can't point one, all of them are very good. But let's try to measure frameworks. For purpose of this article, I created three applications in Symfony2, Django and Ruby On Rails. All those apps do the same - show two tables, one shows top USA cities (by population), second shows US states with highest number of big cities (above 100k citizens). I don't want to measure frameworks by echoing "Hello world", because it's pointless.
</blockquote>
<p>
Each of his applications use the same <a href="https://github.com/wowo/cities-symfony2/blob/master/src/Wowo/CitiesBundle/Resources/fixtures.sql">data set</a> and use a default ORM with optimized queries, HTML rendered by an internal template engine and rounded floats. His performance requests (using Apache's ab) for this sample application show Symfony2 being able to handle the most requests/second followed by Ruby then Django. Symfony2 comes in at a larger file size than both the others combined, though. As far as the community is concerned, Ruby on Rails outpaces the others with about three times as many "watchers" on Github.
</p>
<p>
Be sure to <a href="http://blog.sznapka.pl/modern-frameworks-comparison/#comments">read the comments</a> for some opinions, both for and against his results. 
</p>]]></description>
      <pubDate>Thu, 19 Jan 2012 12:03:17 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stuart Herbert's Blog: ContractLib - An Introduction & Comparing it to PHP's Assert]]></title>
      <guid>http://www.phpdeveloper.org/news/17405</guid>
      <link>http://www.phpdeveloper.org/news/17405</link>
      <description><![CDATA[<p>
<i>Stuart Herbert</i> has two new posts to his blog showing how to use the <a href="https://github.com/stuartherbert/ContractLib">ContractLib</a> tool he's created to define programming "contracts". In <a href="http://blog.stuartherbert.com/php/2012/01/16/getting-started-with-contractlib/">the first</a> he shows some sample usage of the tool and in <a href="http://blog.stuartherbert.com/php/2012/01/17/comparing-contractlib-to-phps-built-in-assert/">the second</a> he compares the functionality of ContractLib's features and PHP's own "<a href="http://us3.php.net/assert">assert</a>" method.
</p>
<blockquote>
<a href="https://github.com/stuartherbert/ContractLib">ContractLib</a> is a simple-to-use PHP component for easily enforcing programming contracts throughout your PHP components. These programming contracts can go a long way to helping you, and the users of your components, develop more robust code.
</blockquote>
<p>
In <a href="http://blog.stuartherbert.com/php/2012/01/16/getting-started-with-contractlib/">his example tests</a> he shows how to set a pre-condition on a method's input ensuring that it will always be the correct datatype (array). In <a href="http://blog.stuartherbert.com/php/2012/01/17/comparing-contractlib-to-phps-built-in-assert/">his comparison</a> with PHP's "assert", he lists out some of the features that either one has and notes that ContractLib allows you to be much more flexible with your checking than just simple statements.
</p>]]></description>
      <pubDate>Tue, 17 Jan 2012 10:58:38 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Udemy Blog: Code Wars: PHP vs Ruby vs Python - Who Reigns Supreme [Infographic]]]></title>
      <guid>http://www.phpdeveloper.org/news/17380</guid>
      <link>http://www.phpdeveloper.org/news/17380</link>
      <description><![CDATA[<p>
On the Udemy blog there's <a href="http://www.udemy.com/blog/modern-language-wars/">a new post</a> with a large infographic showing "who reigns supreme" comparing Ruby, Python and PHP (don't worry, this isn't flamebait...it's actual good stats comparing the state of these three languages). 
</p>
<blockquote>
Just as the Japanese, Spanish and French languages are uniquely different, programming languages also have their variations, some more popular and easier to use than others. With the recent introduction of some new ones, there is a 'war' of modern day languages. What's easier and faster to use is not always the best option.
</blockquote>
<p>The graphic includes stats like: </p>
<ul>
<li>Usability ratings
<li>Popularity in the TIOBE index
<li>How much it's discussed (from the IEEE Spectrum, IRC)
<li>The number of open job postings
<li>Average run time/lines of code
</ul>
<p>
Check out <a href="http://www.udemy.com/blog/modern-language-wars/">the full post</a> for more interesting data.
</p>]]></description>
      <pubDate>Wed, 11 Jan 2012 13:13:29 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stoimen Popov's Blog: PHP Performance: Bitwise Division]]></title>
      <guid>http://www.phpdeveloper.org/news/17357</guid>
      <link>http://www.phpdeveloper.org/news/17357</link>
      <description><![CDATA[<p>
<i>Stoimen Popov</i> has <a href="http://www.stoimen.com/blog/2012/01/05/php-performance-bitwise-division/">a new post</a> to his blog today comparing the performance of bitwise division versus the normal "/" division operator.
</p>
<blockquote>
Recently I wrote about <a href="http://www.stoimen.com/blog/2011/12/26/computer-algorithms-binary-search/">binary search</a> and then I said that in some languages, like PHP, bitwise division by two is not faster than the typical "/" operator. However I decided to make some experiments and here are the results.
</blockquote>
<p>
According to <a href="http://www.stoimen.com/blog/wp-content/uploads/2012/01/bitwise-divide-by-two.png">his results</a> using the bitwise method is slightly faster, but you'd only really notice it when working with large sets of data (like his example using 10,000,000). The code to run his benchmarks is included in the post.
</p>]]></description>
      <pubDate>Fri, 06 Jan 2012 09:26:38 -0600</pubDate>
    </item>
  </channel>
</rss>

