PHP vs Ruby on Rails

Over the past many months, I have seen many articles explaining how PHP is a bad programming language for various reasons. This one is the only one I have read which gives a well thought out reason for it though.

PHP has long been considered something of a standard in modern web development.  Comparatively, Java and .Net have their respective camps, but I’m not sure they match the market-penetration, if you will, that PHP has enjoyed.  And yet, PHP feels like an unintutive language.

To me, PHP has been the C++ of the web world.  Yeah, it’s powerful and can do pretty much anything, but it doesn’t exactly feel good to code with it.

This seems to me to be a fair statement. The article goes on to explain how Ruby on Rails is a much more elegant language and based on my extremely limited experience with RoR, I probably agree. But my argument against that is this:

Rails is a framework. Ruby is the language. PHP is just a language. A lot of effort has been put into Rails to make it easy to use and that effort has paid off for them. Well enough so that people tend to forget that Ruby on Rails is not a language in and of itself.

There are many frameworks that have been written for PHP. Perhaps the most popular at the moment is the Zend Framework. I have used bits and pieces of this in projects for Cornell and it has done well. Another good one is CakePHP which I have started (though never finished) a couple of projects with.

Working with both of these frameworks is much easier (in some cases) than working with the core of PHP. But at the same time, it is extremely easy for me to put together a quick site using the core of PHP and deploy it on just about any host available. A Rails project (as best as I can tell) requires much more effort to create a deploy.

Vista…and other things

I am now part of the wide world of people using Vista. This is not something I was particularly looking forward to, but I’m pretty sure it has progressed far enough that it will turn out all right. Also, I upgraded the core bits of my computer so I should have more than enough power for Vista to play with while leaving me plenty for all that oh so very important stuff that I do.

New components (Upgraded From):

  • AMD Phenom 9850 Quad-Core (AMD Athlon X2 3800)
  • AMD 4850 Radeon (Nvidia 7900 GT)
  • 4 GB GSkill DDR2 1066 (2.5 GB DDR 400)

Having 4 GB of RAM means that Vista can suck up about as much as it wants and I still have plenty to play TF2 or any of the other games of the moment.