One of the key differences in the languages (Ruby vs. PHP) is the level of “object-orientation,” and (obviously) syntax. Ruby was designed from the start (~1993) to be an object-oriented (OO) language (EVERYTHING is an object) while PHP was, until recently (v5.0 – 2004), a procedural language. As a long-time PHP programmer who migrated to Ruby in 2006, I prefer Ruby’s implementation of Types and Objects over PHP's. I also prefer Ruby’s syntax AND coding best-practices over PHP’s.
Why is "Everything is an Object" in Ruby and not PHP? (I know those of you who are ...
Recent Comments