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 did some basic programming language during my Bachelor degree like C, C++, visual basic, Java and mysql but it has been long before but I have little knowledge and understand how the program works and execute. About web development tools I am using HTML and designing software like Photoshop CS2.Now in this semester I am doing XML also.
Web application framework is the software framework that is designed to maintain the development of dynamic websites, Web applications and Web services.
Ruby is “an interpreted scripting language” for quick and easy object-oriented programming”. Find out about the Ruby language and discover what this means.
The programs are usually written in high level code which the CPU cannot execute. So this source code has to be converted into machine code through interpreter. An interpreter naturally converts it every time a program is executed.”Wiki1”
Ruby is also called object oriented programme because every data type is an object including class and types which’s many other languages designate as primitives such as integer, Booleans and nil. And every function is a method. “Wiki2”
What is Rails and how does it work with Ruby?
Rails can be defined as the framework which provides a variety of programs which perform most of the application segment. This makes the programming tasks much simpler and easier. And follow the same pattern as any other programming framework. These frameworks when implemented ease up the take of the programmer as it reduces a large amount of code writing.
Ruby is the base foundation for Rails. Thus it is correct to state that they have a parent/child relationship with each other; Ruby is the parent and Rail is the child.
Ruby helps a programmer to be a better developer by giving him a better understanding of the code he is working with. It makes programming easier as the developer is familiar with the readily available idioms and conventions of Ruby. Knowledge of Ruby also makes debugging quite an easy task for the programmer when he is working with Rails.
Compared to the other programming languages and development environments, Ruby on Rails is a very efficient way of developing successful web applications in a shorter time.
What is meant by “convention over configuration” in regards to the use of Rails in Web application development?
Convention over Configuration is a software design paradigm used by Rails in web application development which seeks to decrease the number of decisions that developers need to make, gaining simplicity, but not necessarily losing flexibility.
When did Model-View-Controller begin and where is it used?
The model is the domain-specific representation of the data upon which the application operates. Domain logic adds meaning to raw data (for example, calculating whether today is the user's birthday, or the totals, taxes, and shipping charges for shopping cart items).
The view renders the model into a form suitable for interaction, typically a user interface element. Multiple views can exist for a single model for different purposes.
The controller receives input and initiates a response by making calls on model objects. An MVC application may be a collection of model/view/controller triplets, each responsible for a different UI element.
MVC is often seen in web applications where the view is the HTML or XHTML generated by the app. The controller receives GET or POST input and decides what to do with it, handing over to domain objects (i.e. the model) that contain the business rules and know how to carry out specific tasks such as processing a new subscription. “wiki4”
Describe the steps involved with the MVC design approach.
- The user interacts with the user interface in some way such as click a mouse button.
- The controller handles the input event from the user interface, and converts the event into appropriate user action, understandable for the model.
- The controller notifies the model of the user action, possibly resulting in a change in the model's state. (
- A view queries the model in order to generate an appropriate user interface
- The user interface waits for further user interactions, which restarts the cycle. “wiki5”
Reference:-
“Wiki1”http://en.wikipedia.org/wiki/Interpreter_%28computing%29
"Wiki2" http://en.wikipedia.org/wiki/Ruby_%28programming_language%29
“Wiki3”http://www.meshplex.org/wiki/Ruby/Ruby_on_Rails_programming_tutorials
“wiki4”http://en.wikipedia.org/wiki/Model_view_controller
“Wiki5”http://en.wikipedia.org/wiki/Model_view_controller
No comments:
Post a Comment