aspose file tools*
The moose likes Ruby and the fly likes Ruby Ruby on Rails  every where? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Ruby Ruby on Rails  every where?" Watch "Ruby Ruby on Rails  every where?" New topic
Author

Ruby Ruby on Rails every where?

srikanth koppisetty
Greenhorn

Joined: Feb 14, 2005
Posts: 20
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61418
    
  67

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 467
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


Visit my blog: http://jnassef.blogspot.com/
David Berube
author
Greenhorn

Joined: Jun 18, 2007
Posts: 26
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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

Joined: Feb 27, 2002
Posts: 8919

I like the scaffloding feature of RoR.It is really cool.

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


Groovy
David McCombs
Ranch Hand

Joined: Oct 17, 2006
Posts: 212
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.


"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration."- Stan Kelly-Bootle
David Berube
author
Greenhorn

Joined: Jun 18, 2007
Posts: 26
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ruby Ruby on Rails every where?