I don’t want to drive this topic into the ground because as I’ve said before, PHP and Ruby come from completely different directions, but here’s what I miss when I’m writing in PHP:

* Buggy static method inheritance – this is well noted in the PHP community
* Buggy class reflection – also well noted
* Symbols like :this
* Having to specify $this-> all over the place
* $a = array(‘test’=>’true’) instead of $a = {‘test=>’true’}
* $ all over the place
* Not being able to pass hashes into functions
* Blocks

None of these are showstoppers, they’re just little annoyances that make me feel like PHP is more crude than Ruby. Ruby is very elegant, even more so than Python.

  One Response to “PHP vs. Ruby, again”

  1. Also I miss the wonderful way to extend build in classes like String and Array or Hash without subclassing it.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 Ben Allfree :: Painless Programming