Hacker News new | ask | show | jobs
by camus2 4616 days ago
In Ruby everything is an object with methods and attributes. In PHP object orientation is an after thought and not a very good one, PHP is so broken it is a joke.

There is a reason why modern web development was invented with ruby and why all modern web frameworks try to copy rails or sinatra. Because Ruby was designed the right way.

One doesnt need interfaces and abstract classes if one uses duck typing and message passing the right way.

1 comments

Again, you don't understand design by contract. You just pass objects around and pray that they will work.

If you stayed a bit up to date, you would realize that Rails is pretty dated already. For instance, take a look at Symfony2. It easily beats Rails in every aspect possible. You probably won't be able to appreciate it though, since you don't know the first thing about design patterns. You just use whatever you thought was "cool", easy, and you stayed for the syntactic sugar, which you confuse with being well designed.