May 23 2008

Rails Creator Praises PHP

Tag: Programming & InternetDustin @ 12:06 pm

I would consider myself above average, maybe even an expert when in comes to developing in PHP. I can pretty much accomplish whatever my heart imagines as far as web applications with it. The problem comes when I have to maintain these applications. Therefore I have looked into frameworks such as Ruby on Rails and CakePHP. I’ve teetered between the two. I’ve heard many say that Ruby is what makes rails so great. On the other hand CakePHP allows you to use your extensive knowledge of PHP and put in a more maintainable framework.

Well, all things considered led me to make the decision to learn Ruby on Rails. It’s been much more daunting than I imagined it would be. I feel like an old dog trying to learn new tricks.

In the process of learning, I’ve been all over the web. One stop led me to the blog of David Heinemeier Hannson - the creator of Ruby on Rails. One thing that has been quite annoying is reading post from self-righteous Ruby on Rails developers who like to put down PHP. So it was refreshing to see DHH give PHP a little love!
Continue reading “Rails Creator Praises PHP”


May 22 2008

Ruby on Rails 2.0 Scaffolding

Tag: Programming & InternetDustin @ 9:41 am

I’m currently trying to learn Ruby on Rails. I guess now is somewhat of an odd time to be learning as I seem stuck in archaic examples and tutorials written for 1.2.6 and 2.0 has been released and changed the way many things are done.

Take scaffolding for example. When I first starting learning about ROR and CakePHP, I thought it was pretty cool that I could put in a one-liner to generate a view representing a database table, then I could run a command to generate the code for that scaffolding if I wanted to use it as a base.

Well, it seems they took all that out of ROR in 2.0. Now there is one way to do it, from the command line, the first time. No more one liners and no more building the scaffolding based on the database table :(

Fortunately someone for ROR talk pointed me to two resources that I have found helpful:

www.elctech.com/blog/refreshing-rails-generated-views

helloimbloggingatyounow.blogspot.com/2008/03/i-am-leet-rails-haxor.html




ss_blog_claim=4973c51f5e7bec57951f995fed1b85f3 ss_blog_claim=4973c51f5e7bec57951f995fed1b85f3