1. Make a list of all programming languages and Web development tools used by you in prior experiences. Describe what you know about Web application frameworks before we begin.
I came from a hardware background, so my programming skill is very limited. I have learnt the basic XHTML syntax coding and Dreamweaver CS4 as my only web development tool from the Multimedia programming course.
2. Ruby is “an interpreted scripting language” for quick and easy object-oriented programming”. Find out about the Ruby language and discover what this means.
Ruby is ‘a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.’ (Ruby, n.d.)
Ruby is an interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible. (FreeBSD Man Pages, 2002)
In summary, Ruby is a general purpose Object Oriented Programming Language, it was invented by Yukihiro Matsumoto in mid 90’s. Ruby sees all the information in the programming as objects. He extracted and combined some languages like PERL, Python, Small Talk and Lisp to make up a syntax of codes that is similar to English for easy understanding, and leave the difficult part handled by the language itself. (An interpreted scripting language).
3. What is Rails and how does it work with Ruby?
While Ruby is a language, Rail is a web application development framework written in Ruby around 2005. The framework is based on Model View Controller (MVC) structure and very good for The Ruby on Rails works together well and helps to gain great popularity.
Commonly appeared, Ruby on Rails (RoR) is a free open source web development framework based on Model-View-Controller that very good for efficient programming (e.g Agile programming) and yet it is powerful as well.
4. What is meant by “convention over configuration” in regards to the use of Rails in Web application development?
Convention over Configuration (CoC) is a software design principle for rapid development; trying to ‘Don’t Repeat Yourself’ (DRY). The paradigm is to reduce the number of specifications by only defining those parameters not nature. 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.’ ‘"Don't repeat yourself" means that information is located in a single, unambiguous place. For example, using the ActiveRecord 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.’ (Wiki, 2010)
5. When did Model-View-Controller begin and where is it used?
MVC was first described in 1979 by Trygve Reenskaug, then working on Smalltalk at Xerox PARC. The original implementation is described in depth in the influential paper "Applications Programming in Smalltalk-80: How to use Model–View–Controller".
Model–View–Controller (MVC) is a software architecture , currently considered an architectural pattern used in software engineering. The pattern isolates "domain logic" (the application logic for the user) from input and presentation (GUI), permitting independent development, testing and maintenance of each. Model–View–Controller (MVC) is a software architecture , currently considered an architectural pattern used in software engineering. The pattern isolates "domain logic" (the application logic for the user) from input and presentation (GUI), permitting independent development, testing and maintenance of each.
6. Describe the steps involved with the MVC design approach.
To follow the MVC design, it is required to set up a structure have an isolation between the model (data or database), view (the user interference or presentation) and controller (the application logic). This model can allow isolation development, testing and maintenance.
References
Free BSD Man Pages. (2002). Manual Reference Pages - RUBY(1). Retrieved from http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=ruby on 12 March 2010
Rudy. (n.d.) Home page. Retrieved from http://www.ruby-lang.org/en/ on 12 March 2010
Wiki. (2010). Convention over Configuration. Retrieved from http://en.wikipedia.org/wiki/Convention_over_configuration on 12 March 2010
Wiki. (2010). Model–view–controller. Retrieved from http://en.wikipedia.org/wiki/Model-view-controller#History on 12 March 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment