• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ruby Ruby on Rails every where?

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic