SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 84 | Next

Ola Bini

"Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to Java"

Some people consider it a
good task to learn a programming language better so you can implement your own framework. In that
respect it would be hard to compare Rails to other frameworks. However, I??™ll still try to describe the most
popular frameworks in several different languages and also contrast them against Rails. Some would say that
such a comparison will always be subjective. I won??™t argue with that; these are my personal thoughts about
the closest competitors to Rails.
Struts (Java)
Struts is arguably the number one web framework used with Java. It doesn??™t usually sit alone, though. The
most common situation is probably Struts combined with Tiles and Hibernate. That??™s the scenario I??™ll consider
here, because the different parts neatly match against the letters in MVC. This is also the first major difference
between Struts and Rails. Struts doesn??™t provide MVC functionality at all; it just gives you the controller
part. Tiles is easy to get going with Struts, but it??™s not part of the framework and also needs separate configuration.
Configuration is also the part of Struts that can be quite painful. You gain lots of flexibility, but at the
same time you need to keep numerous XML files up to date.
Rails configuration is basically guesswork unless you want to provide something substantial to it. Only
one configuration item is needed to get Rails working, and that is the database parameters.
The model is the big difference between Struts and Rails, though.


Pages:
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96