Sunday, September 2, 2007

What makes Ruby better than Java and PHP?

Ruby by itself is not better than Java or PHP. Ruby is just a general purpose computer language. Each Language has its advantages and disadvantages, that's why it is according to the project you will undertake you should choose the better language that suits your needs.

For myself, I use Ruby in Web development. Cause the web development is very dynamic, every day you have new requirements that's why I prefer to use a language like Ruby that's make me develop more with simple code, and most important I like Ruby's elegantly clever syntax.

But again without a great framework like RubyOnRails I wouldn't use Ruby. Ruby on rails gives you everything you need from the begining, so you do not have to prepare all your tools just to start. I mean when you start a rails project you will have a Object Relational Mapping, Unit testing system, URL Mapping, MVC structure, templating system, caching, Ajax, webservices, emailer, tasks runner, command prompt console, and tens of other useful stuff that you otherwise spend a considerable amount of your project time trying to setup if you don't use a decent framework.

That said, there are decent frameworks in Java and PHP that can do the same as Rails, like PHP CackePHP, and Grails for java. But It's Rails who get all the hype because it is the one who really made it eaiser for developer to make professional websites.

1 comment:

lxrman said...

there is a question i like to ask and i am sure you have answer for it...

while ruby on rails have a built-in tools that you use instead of preparing them each time with your own is a great feature but i am concerned about the security approach .. these tools are open-soured as i presume ,, so i think this make them much easy for every one to find vurnabilities in them which ( by using them ) make them my vurnabilities ??

i am not a Microsoft suck-up and i do believe that Model-View-Controller frameworks like ruby on rails are the future ... i just want to make sure that any application i write with ruby on rails is secured


JavaScript bloat is a more real problem today than it ever was. Bundlephobia lets you understand the performance cost of adding a npm pack...