• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ruby Ruby on Rails every where?

 
srikanth koppisetty
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Now days the popularity of Ruby on Rails is growing day by day.......

There are already so many frameworks available in market and it is very difficult to choose within those.

And how is it advantage to chose Ruby on Rails, when I have to learn language with new framework.

How do you compare this with JSF, Seams or Struts framework?

Srigold
[ February 05, 2008: Message edited by: Bear Bibeault ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by srikanth koppisetty:
How do you compare [Ruby on Rails] with JSF, Seams or Struts framework?

One major difference is that JSF and Seam (which incorporates JSF) are component-oriented frameworks whereas the old Struts (1.x) framework and Ruby on Rails are request/response-oriented. Another major difference is the language - Ruby is much more malleable a programming language compared to Java.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
Ruby is much more malleable a programming language compared to Java.

Not to turn this into a Ruby discussion -- or perhaps that's perfectly appropriate -- but could you expand on this for someone who's a complete Ruby idiot?
[ February 05, 2008: Message edited by: Bear Bibeault ]
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, here's something I got from the ruby wiki
In Ruby, everything is malleable. Methods can be added to existing classes without subclassing, operators can be overloaded, and even the behavior of the standard library can be redefined at runtime.

Now if you think that it's totally appropriate to turn this into a Ruby Discussion, take a look at this blog post
 
David Berube
author
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ruby is definitely a more flexible language than Java. This may or may not be desirable depending on your preference. Note that Ruby is not especially good at protecting you from stupidity, so if you're saddled with incompetent developers on your team, Java will protect you from them to a greater degree. (Ultimately, incompetent programmers will be a problem irrespective of programming language, of course.)

For example, you can also reopen a previously defined class and add new code to it. You can even use a method_missing definition to provide special handling for undefined methods: this lets you, for example, create "patterns" of methods, rather than having to create all of your methods by hand. Rails does this for finder methods, so your DB models can have calls like find_by_first_name_and_last_name without any code explicitly defining them.

Take it easy,
David Berube
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Not to turn this into a Ruby discussion -- or perhaps that's perfectly appropriate -- but could you expand on this for someone who's a complete Ruby idiot?

What I meant by malleable was that Ruby gives the programmer more power in terms of expressing himself in different ways whereas in Java you can basically just rename your variables/methods/classes, add/remove parens, and indent code. With Ruby, you can create, for example, small DSLs easier, not to mention fluent and literate APIs.
[ February 07, 2008: Message edited by: Lasse Koskela ]
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like the scaffloding feature of RoR.It is really cool.

I think developers have to test more when they are usinf Ruby.
 
David McCombs
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Prad Dip:
I like the scaffloding feature of RoR.It is really cool.

I think developers have to test more when they are usinf Ruby.


Scaffolding, while quite neat and a great example of how flexible this framework is, really isn't that useful once you get past the basics. But is great for banging out a proof of concept in short order.
 
David Berube
author
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are, however, more advanced scaffolding plugins, such as ActiveScaffold, which is useful for administrative interfaces and can be created with almost no work.

Take it easy,
David Berube
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic