Philosophy and Design
Ruby on Rails is intended to emphasize Convention over Configuration (CoC), and the rapid development principle of Don't Repeat Yourself (DRY).
"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, Ruby on Rails conventions lead to less code and less repetition.
"Don't repeat yourself" means that information is located in a single, unambiguous place. For example, using the ActiveRecord module of Rails, the developer does not need to specify database column names in class definitions. Instead, Ruby on Rails can retrieve this information from the database based on the class name.
"Fat models, skinny controllers" means that most of the application logic should be placed within the model while leaving the controller as light as possible.
Read more about this topic: Ruby On Rails
Famous quotes containing the words philosophy and, philosophy and/or design:
“That the world is a divine game and beyond good and evil:Min this the Vedanta philosophy and Heraclitus are my predecessors.”
—Friedrich Nietzsche (18441900)
“My philosophy is such that I am not going to vote against the oppressed. I have been oppressed, and so I am always going to have a vote for the oppressed, regardless of whether that oppressed is black or white or yellow or the people of the Middle East, or what. I have that feeling.”
—Septima Clark (18981987)
“You can make as good a design out of an American turkey as a Japanese out of his native stork.”
—For the State of Illinois, U.S. public relief program (1935-1943)