27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Reason #3: RubyGems<br />

always, so we are nice,” often abbreviated to MINASWAN. People in the Ruby and Rails<br />

communities are incredibly nice to everyone.<br />

Another example of the excellent community around Ruby on Rails is the number<br />

of conferences and gatherings held worldwide. The smallest of them are the intimate<br />

hack sessions where people work together on applications and share ideas in a room.<br />

Slightly bigger and more organized than that are the events such as Railscamps<br />

(http://railscamps.org) which have about 150 people attend and run from Friday–<br />

Monday, with interesting talks given on the Saturdays and Sundays. The largest however<br />

is Railsconf, which has about 2,000 people in attendance.<br />

There are hundreds of thousands, if not millions of people using Ruby on Rails<br />

today, building great web applications with it and building the best web framework<br />

community on the planet.<br />

A.2 Reason #2: the speed and ease of development<br />

The speed of how quickly you are able to develop a Ruby on Rails application is definitely<br />

one of the main reasons that people gravitate toward (and stick with) the framework.<br />

One documented case of this is that of a team that had developed an application<br />

using a Java-based framework, which took four months. When that application<br />

became difficult to maintain, alternative languages and frameworks were sought, with<br />

Ruby and Ruby on Rails found to fit the bill adequately. The team re-implemented all<br />

the features of the original Java-based application within three weeks, with less code<br />

and more beautiful code.<br />

Ruby on Rails follows a paradigm known as convention over configuration. This paradigm<br />

is adopted not only by Rails, but also by other modern web frameworks. Rails is<br />

designed in such a way that it takes care of the normal configuration that you may<br />

have to do with other frameworks, leaving it up to you to get down to coding real features<br />

for your application.<br />

One example of this convention over configuration is the mapping between classes<br />

designed to interact with the database and the tables related to these classes. If the<br />

class is called Project then it can be assumed by Rails (and the people coding the<br />

application) that the related table is going to be called projects. But this can be configured<br />

using a setting in the class if that table name is not desired.<br />

A.3 Reason #3: RubyGems<br />

This third point is more about a general boon to the community of Ruby, but it plays a<br />

key role in developing Rails applications.<br />

As we stated before, the culture of the Rails community is one of self-improvement.<br />

There are people who are consistently thinking of new ways to make other people’s<br />

lives better. One of these ways is the RubyGems system, which allows people to share<br />

libraries in a common format. By installing a gem, a user is able to use its code along<br />

543

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!