Sep | OCT | MAR
| 18 |
2005 | 2006 | 2007

2 captures 18 Oct 06 - 13 Mar 07 |

Close Help

edit

## Ruby and Rails have spoiled me rotten

Mon, 17 Jul 2006 12:40:00 GMT

It’s true. I’m sitting here coding in PHP using the Zend Framework and all I can think about is how much nicer Rails is, or how much easier it is to do [x] in Ruby. It’s not that the Zend Framework is bad or anything, it’s quite nice, but you just can’t match Ruby’s expressiveness in a language like PHP. Add the amazing convenience Rails builds on top of Ruby and that’s a really hard combo to compete with.

I’d love to be using mixins instead of mucking around with abstract classes and interfaces, neither of which will just let you share a method between different classes. Writing proxy methods in these tiny in-between classes is annoying. (ie. inherit from Zend_class, then my real classes inherit from the middle-man class) I could add things to Zend’s classes, but then upgrades are a bitch. I miss Ruby. I could use something like whytheluckystiff’s PHP mixins, which is a clever hack, but still a hack.

I keep looking at Rails code to see how things are done there, and I already coded a nearly complete prototype in Rails as a reference. I could have finished the thing in Rails by now, seriously. I’m still playing catch-up writing validations and model classes for all my objects, stuff I could’ve had for free using Rails, with an extra 10 mins to add validations and make sure they’re all working nicely.

It’s no wonder David H. Hansson wasn’t able to write a framework he was happy with in PHP. After using Rails everything seems like a chore. I’m just coding solved problems over again in an inferior language.

But hey, I’m learning things and I still got to use Ruby even if the code won’t be used later. I guess this experience will just make me appreciate the richness of Ruby and Rails even more.

Posted in rails, ruby, php, coding | Tags framework, php, rails, ruby, zend | no comments | no trackbacks

#### Comments

Leave a response

#### Trackbacks

Use the following link to trackback from your own site:
http://sami.samhuri.net/articles/trackback/429

RSS feed for this post trackback uri

Your name | (leave url/email »)
Your blog |
Your email |
Your message |
Preview comment

# sjs

##