Blogging Task 9

23 11 2009

Summarise the main features of the Ruby on Rails technology for building web applications. In particular comment on the use of the MVC architecture, ActiveRecord and the stringent naming convention.

–       Open source web framework thats optimized for programmer happiness and sunstainable productivity.

–       MVC:

  • Like many contemporary web frameworks, Rails uses the Model-View-Controller (MVC) architecture pattern to organize application programming.[5]
  • For instance, if there is a class that is named “date” in the model, then the related table in the database source will automatically be named “date.”

–       Active record:

–       Naming convention:

  • “Convention over Configuration” means a developer only needs to specify unconventional aspects of the application. For example, if there is a class Sale in the model, the corresponding table in the database is called sales by default. It is only if one deviates from this convention, such as calling the table “products sold”, that the developer needs to write code regarding these names. Generally, this leads to less code and less repetition.
Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: