<?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>Fri, 24 May 2013 05:23:05 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Engine Yard Blog: Learning Rails (and Ruby)]]></title>
      <guid>http://www.phpdeveloper.org/news/19446</guid>
      <link>http://www.phpdeveloper.org/news/19446</link>
      <description><![CDATA[<p>
<i>Davey Shafik</i>, a long-time PHP developer and community member/speaker, recently had to learn Ruby on Rails for a project at work. He's <a href="https://blog.engineyard.com/2013/learning-rails-and-ruby">shared some of the experience</a> (from the perspective of a PHP developer) in a recent post on the Engine Yard blog.
</p>
<blockquote>
I know PHP. I mean, I really know PHP. Not just the syntax, or the idioms and idiosyncrasies, but why. I can tell you why something works the way it does, under the hood; and I was probably around when the decision was made to do it that way. Thirteen years with any language is a long time. [...] Ultimately, it comes down to: Is it the right tool for the task? Because of this, ultimately when I come to write a web site, PHP is my tool of choice. Know thy tool well, and it shall treat you well. Then along came Engine Yard, and I was exposed to just a ton of fantastic engineers who happen to choose Ruby as their tool of choice.
</blockquote>
<p>
His project was the site for the <a href="http://distill.engineyard.com/">Distill</a> conference Engine Yard is putting on in August. He lists a few "WTF" moments he came across when learning and creating the site with Ruby including issues with parentheses on metod calls, method naming rules, implicit returns and variations on control structures. He also talks about some of the other technologies used to power the site like OAuth and S3 for image uploads (via <a href="https://github.com/thoughtbot/paperclip">paperclip</a>). He finishes out the post by wrapping up the experience and talking some about the benefits of getting outside your comfort zone and learning something wildly new (language or other technology) to give you perspective.
</p>
Link: https://blog.engineyard.com/2013/learning-rails-and-ruby]]></description>
      <pubDate>Thu, 11 Apr 2013 10:33:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[P&aacute;draic Brady: Getting Ahead In Security By Watching The Neighbours]]></title>
      <guid>http://www.phpdeveloper.org/news/19061</guid>
      <link>http://www.phpdeveloper.org/news/19061</link>
      <description><![CDATA[<p>
In <a href="http://blog.astrumfutura.com/2013/01/getting-ahead-in-security-by-watching-the-neighbours/">his latest post</a> <i>Padraic Brady</i> talks some about the recent security issues that <a href="https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion">happened with Ruby on Rails</a> that allowed for remote code execution and how, if you use code blindly, you could be in for a similar fate.
</p>
<blockquote>
<p>
Code execution vulnerabilities are, by definition, hideous monsters. The ability for external inputs to enter an execution context (i.e. injecting or manipulating code that is executed on the server) can be difficult to spot through the haze of convenience that such machinations are often designed to deliver. In Rail's case, that convenience was to automatically cast data entries in XML or YAML inputs into Ruby types including, unfortunately, Symbols and Objects. 
</p>
<p>
These types of "buried" code execution vulnerabilities are still easy to locate in PHP, at least, because you are still restricted to normal code execution pathways in the absence of Ruby's dark magic, e.g. eval(), include(), require_once(), system() and, let's not forget, unserialize(). 
</p>
</blockquote>
<p>
He talks about how, if you're not careful with the code (third party libraries) that you use in your applications - or don't adhere to good security practices in your own - you could be vulnerable to a similar style of attack. After some investigation on his part, he discovered an issue related to this in the Symfony2 YAML parser (<a href="http://symfony.com/blog/security-release-symfony-2-0-22-and-2-1-7-released">now fixed</a> with a new release). 
</p>
<blockquote>
To summarise…

Pay attention to competing applications or frameworks - their problems may also be your problems. If you're worried about arbitrary code execution vulnerabilities then audit your code. You can even, as a sanity check, use grep to find uses of functions like eval(), unserialize(), etc and analyse where their parameters' might originate from. 
</blockquote>]]></description>
      <pubDate>Fri, 18 Jan 2013 11:53:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Wojciech Sznapka's Blog: Always use most latest versions for benchmarks]]></title>
      <guid>http://www.phpdeveloper.org/news/17452</guid>
      <link>http://www.phpdeveloper.org/news/17452</link>
      <description><![CDATA[<p>
In response to some criticism about his <a href="http://phpdeveloper.org/news/17420">previous post</a> with some framework benchmarks, <i>Wojciech Sznapka</i> has <a href="http://blog.sznapka.pl/always-use-most-latest-versions-for-benchmarks/">posted updated results</a> using the latest versions of each framework.
</p>
<blockquote>
In my previous post Modern framework comparison I presented performance tests, which compared Ruby On Rails, Django and Symfony2. After recieving a feedback in comments I decided to run this benchmark one more time on my own laptop (instead of on my hosting). The reason was simple: enviroment was outdated.
</blockquote>
<p>
There were some overall performance increases were seen, but some statistics were higher - the "time per request" for all of them grew, some by quite a bit. He presents these benchmarks with a caveat, though:
</p>
<blockquote>
You should never choose framework based on benchmarks. Those shows them from one point of view, but there are plenty of other aspects, such as support, community, maturity, number of ready to use components.
</blockquote>]]></description>
      <pubDate>Thu, 26 Jan 2012 10:13:35 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Why does everything need to be integrated into a framework?]]></title>
      <guid>http://www.phpdeveloper.org/news/17435</guid>
      <link>http://www.phpdeveloper.org/news/17435</link>
      <description><![CDATA[<p>
In <a href="http://codeutopia.net/blog/2012/01/21/why-does-everything-need-to-be-integrated-into-a-framework/">this new post</a> to his blog <i>Jani Hartikainen</i> wonders if "everything needs to be integrated into a framework".
</p>
<blockquote>
There is occasionally people asking about things such as "Is there an integration for X in framework Y?" Then they are disappointed when it isn't, acting as if it's a really bad thing. But why do things need to be integrated to begin with?
</blockquote>
<p>
He points out that other frameworks (ex. Ruby on Rails) have a lot of things integrated, but he doesn't agree that this should be the standard. He suggests that, by not having tools that are tightly coupled with the framework you're using, you open yourself up to a wider, possibly better range of external tools. 
</p>
<blockquote>
One could argue that integrated libraries give you a productivity boost. While it may be so, I think the main boost you get is the very first steps: It's easier to get started, but after that the benefit fades. In the long run, it may even turn into a poor investment in general, as you could have learned a general purpose tool instead.
</blockquote>]]></description>
      <pubDate>Mon, 23 Jan 2012 13:04:22 -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[Seldo.com: PHP needs to die. What will replace it?]]></title>
      <guid>http://www.phpdeveloper.org/news/15239</guid>
      <link>http://www.phpdeveloper.org/news/15239</link>
      <description><![CDATA[<p>
In <a href="http://seldo.com/weblog/2010/09/27/php_needs_to_die_what_will_replace_it">this recent post</a> <i>Laurie Voss</i> has voiced his opinion about the PHP language - that it needs to die, but also asks what should replace it.
</p>
<blockquote>
The reason I know PHP has to die is because I've seen this before. Roughly a decade ago, PHP killed Perl. [...] As a language for newcomers, and especially for web developers, it was already dying in 1999 and was mostly dead by sometime around 2005. [...] There was no reason you couldn't write a perfect web app in Perl, but in PHP you'd do it faster and easier, despite the flaws in PHP itself which were, even then, already obvious. 
</blockquote>
<p>
He talks about moving on from PHP, why almost requiring a framework to do anything these days is a bad thing and how, despite the flaws the language has, he feels "trapped in a language that's losing its suitability for the task." He suggests that one successor might be Ruby on Rails but also points out some of the flaws it has including performance, Active Record and possible issues with code generation. He notes, though, that this isn't quite the replacement he had in mind and that there's just not something there to fill that gap.
</p>
<p>
Be sure to <a href="http://seldo.com/weblog/2010/09/27/php_needs_to_die_what_will_replace_it#comments">read the comments</a> for lots of great opinions from both sides of the PHP opinion fence.
</p>]]></description>
      <pubDate>Wed, 06 Oct 2010 12:19:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Builder Zone: PHP 2.x frameworks and Ruby on Rails]]></title>
      <guid>http://www.phpdeveloper.org/news/14480</guid>
      <link>http://www.phpdeveloper.org/news/14480</link>
      <description><![CDATA[<p>
On the Web Builder Zone there's a new article from <i>Giorgio Sironi</i> that compares the <a href="http://css.dzone.com/articles/php-and-ruby-rails">current states of PHP and Ruby on Rails</a> when it comes to adoption and overall options they each provide.
</p>
<blockquote>
It has been said ad nauseam that comparing PHP and Ruby on Rails is unfair as one is a programming language and the other is a full-stack framework. In spite of this, we can compare PHP frameworks (which have learned a lot from their first releases) and Ruby on Rails, again not by piling up a list of features, which would be also cluttered by different extensions and plugins. I'm talking about the different approaches taken by PHP and Ruby framework developers.
</blockquote>
<p>
He talks about the options (or lack there of) that each side of the same web development coin provide and how "magic" and configuration come in to play when developers are making their selections for the most relevant technologies.
</p>]]></description>
      <pubDate>Fri, 07 May 2010 12:23:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Mischook's Blog: What happened to Ruby? And why PHP is KING of the Web.]]></title>
      <guid>http://www.phpdeveloper.org/news/12857</guid>
      <link>http://www.phpdeveloper.org/news/12857</link>
      <description><![CDATA[<p>
In <a href="http://www.killerphp.com/articles/what-happened-to-ruby-and-why-php-is-king-of-the-web/">this new post</a> to his KillerPHP blog <i>Stefan Mischook</i> voices his opinion on why he thinks PHP is the "King of the Web" (and wonders what happened to Ruby on Rails).
</p>
<blockquote>
In 2006 I created killerphp.com because I wanted to make it easy for web designers to learn PHP. I thought PHP was THE predominate web programming language and I felt every web designer should include PHP as one of their core coding skills [...] Then Ruby came along...for a short while.
</blockquote>
<p>
He looks back at the time when Rails was "the best thing since sliced bread" and was taking the web world by storm. Other Ruby frameworks have come along and are taking the lead (like a merge of Merb and Rails). So, what does <i>Stefan</i> think the problem was with RoR's climb to fame and popularity? The crucial pieces that were missing (libraries, functionality, etc) and its poor resource handling that could lead to some big problems with <a href="http://twitter.com">certain kinds of applications</a>.
</p>
<p>
There's lots of <a href="http://www.killerphp.com/articles/what-happened-to-ruby-and-why-php-is-king-of-the-web/#comments">great comments</a> from both PHP and RoR-ers alike, so be sure to gives those a look too!
</p>]]></description>
      <pubDate>Mon, 13 Jul 2009 07:57:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Juozas Kaziukenas' Blog:  Ruby on Rails vs PHP (Video)]]></title>
      <guid>http://www.phpdeveloper.org/news/12018</guid>
      <link>http://www.phpdeveloper.org/news/12018</link>
      <description><![CDATA[<p>
<i>Juozas Kaziukenas</i> has <a href="http://dev.juokaz.com/video/ruby-on-rails-vs-php">reposted a video</a> created by the RailsEmnvy.com folks (one of several, <a href="http://www.youtube.com/user/envyads">check out YouTube</a> for more) that does a "Mac vs PC" Apple parody commercial of Ruby and PHP.
</p>
<blockquote>
Gregg Pollack and Jason Seifer from RailsEnvy.com do some Ruby on Rails commercials in the same style of the Mac vs PC ads. Videos produced by Jason Hawkins of MakeFilmWork.com. 
</blockquote>
<p>
Other videos include <a href="http://www.youtube.com/watch?v=528BCJiRkks&feature=channel_page">Ruby on Rails vs .NET</a>, <a href="http://www.youtube.com/watch?v=PLUS00QrYWw&feature=channel_page">Ruby on Rails vs Django</a> and, of course, <a href="http://www.youtube.com/watch?v=kU-4D51FY98&feature=channel_page">Ruby on Rails vs ColdFusion</a>.
</p>]]></description>
      <pubDate>Wed, 25 Feb 2009 09:33:24 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christopher Jones' Blog: Free: Experience Oracle, PHP & Ruby/Rails at Oracle HQ]]></title>
      <guid>http://www.phpdeveloper.org/news/10840</guid>
      <link>http://www.phpdeveloper.org/news/10840</link>
      <description><![CDATA[<p>
<i>Christopher Jones</i> <a href="http://blogs.oracle.com/opal/2008/08/free_experience_oracle_php_rub.html">points out</a> a free event that Oracle is having at its Headquarters (in Redwood Shores, CA) - "Experience Oracle, PHP & Ruby/Rails".
</p>
<blockquote>
Oracle is running a free workshop at its Headquarters on August 25th. This is a call for developers interested in developing applications in PHP, Ruby/Rails, Java, .Net or even wanting to use Oracle's free SQL Developer tool or learn web development with Oracle's APEX product.
</blockquote>
<p>
They'll be providing lunch and the information, you just show up and soak it all in. You can find more information about the event <a href="http://www.oracle.com/webapps/events/EventsDetail.jsp?p_eventId=83729&src=6635701&src=6635701&Act=63">here</a> (and register to reserve your spot).
</p>]]></description>
      <pubDate>Fri, 15 Aug 2008 10:24:51 -0500</pubDate>
    </item>
  </channel>
</rss>
