CSC/ECE 517 Fall 2010/ch2 2d aa: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:


== Origin of Scaffolds ==
== Origin of Scaffolds ==
Scaffolding was a feature in Rails right from its initial versions. It was either through [http://en.wikipedia.org/wiki/Scaffold_(programming)#Dynamic_scaffolding 'Dynamic scaffolding']
Scaffolding was a feature in Rails right from its initial versions. It was either through [http://en.wikipedia.org/wiki/Scaffold_(programming)#Dynamic_scaffolding 'Dynamic scaffolding']
in the 1.x versions or through [http://en.wikipedia.org/wiki/Scaffold_(programming)#Scaffold_generation 'Scaffold generation'] in the later versions.Though we could not accurately point the 'Origin' of Scaffolds in the web application frameworks, it is
in the 1.x versions or through [http://en.wikipedia.org/wiki/Scaffold_(programming)#Scaffold_generation 'Scaffold generation'] in the later versions.Though we could not accurately point the 'Origin' of Scaffolds in the web application frameworks, it is
Line 17: Line 18:


== Types of Scaffolds ==
== Types of Scaffolds ==
Scaffolds could be broadly classified under the following categories based on their functionality.
 
Scaffolds could be classified under the following categories based on their functionality.


=== Scaffolds for generation of Web pages/UI screens ===
=== Scaffolds for generation of Web pages/UI screens ===
Line 25: Line 27:


=== Scaffolds for CRUD functions ===
=== Scaffolds for CRUD functions ===
symfony
'CRUD' functionality is the most elemental part of a scaffold based application. We need to describe the Database (tables and fields) and the pages for the CRUD functions are generated automatically. There are many CRUD scaffolding utilities available.
Examples of such CRUD generators are PHP MySQL [http://www.phpscaffold.com/ 1],MVC Scaffold Generator [http://www.twinforms.com/products/mvcscaffold/index.php 2]
 
=== Scaffolds for Generating Model-View-Controller ===
Most of the [http://en.wikipedia.org/wiki/Model%E2%80%93View%E2%80%93Controller MVC] based web application frameworks like Rails, Grails, have this feature.Just as we do for a CRUD generator, we need to provide the minimal information about the Data
and generates the Model,Views and controllers for the same, and we have a running piece of code. In this way developer has a protype to work with instead of writing the code from the scratch. This which makes web application development, a breeze.[http://www.aptana.com/products/radrails 1]
=== SEO Scaffolds ===
We also have scaffolds that can be used for [http://en.wikipedia.org/wiki/Search_engine_optimization Search Engine optimization].
Gaia framework is a pragmatic, agile framework which provides SEO scaffolding facility.Through SEO scaffolding search engines and other non-flash users can access our site easily.
 
== Features of Scaffolds ==
 
=== Simplified web development ===
=== Convention Over Configuration ===
=== Separation of concerns ===
=== DRY principle ===
=== Design Approach ===
=== Easo of refactoring ===
=== Support for testing ===
=== Detailed logs of statistics of tests performed ===
=== Ease of expansion ===
 
== Conclusion ==
 
 
 
 
 


=== Scaffolds for Application development ===
External Links
=== Scaffolds for generation of UI screens ===
[http://osflash.org/open_source_flash_projects]

Revision as of 03:51, 21 September 2010

2d. Scaffolding in Web application frameworks

Rails provides scaffolding for the rapid creation of prototype Web applications. So do many other languages. Write about scaffolds per se, covering the topic in general. For example, what are the main features of scaffolds today? How did scaffolds originate and evolve? Last year we did a very similar topic (you can search our wiki for "scaffold"). But last year's writers just described the various scaffolding frameworks consecutively. They didn't look at all of them and come up with a comprehensive description. You should write about the topic of scaffolding in general, referring to specific scaffolds as examples of certain concepts.

Scaffolding in Web Application frameworks

Introduction

In most of the web applications , irrespective of their complexity, major functionality boils down to accessing the underlying data and presenting them via the User Interface. The four basic functions involved with this data are Create, Read (or Retrieve), Update and Delete(or Destroy), collectively known as the CRUD functionality. Can this 'data', around which the application is centred, be used to build a rapid prototype of our application itself? The answer is 'Yes!' and we can do is through a technique called 'Scaffolding'. Such scaffolded applications can either be used ‘as-is’ or used as prototypes, which are further improvised by the developer. This technique is used by the web developers for rapid development.

‘Scaffolds’ are one of the Wow! factors of the ‘Ruby on rails’ shortened as 'Rails' framework. Ever since, the technique has been absorbed by a multitude of web application frameworks and each of them rendering its own flavor of it. Some of the well known frameworks are Grails,Monorail (.Net),CakePHP, ASP.NET Dynamic Data, Django.

Origin of Scaffolds

Scaffolding was a feature in Rails right from its initial versions. It was either through 'Dynamic scaffolding' in the 1.x versions or through 'Scaffold generation' in the later versions.Though we could not accurately point the 'Origin' of Scaffolds in the web application frameworks, it is worth noting that such a concept of 'rapid development' existed even before Rails and its counterparts existed.Oracle HTML DB renamed as Oracle Application Express is a quintessential example.This helps in reducing the development time of web based applications.However, such applications can be hosted only in an Oracle database as they were created using Oracle's tools.

Types of Scaffolds

Scaffolds could be classified under the following categories based on their functionality.

Scaffolds for generation of Web pages/UI screens

We have scaffolds that are well suited for the presentation logic, requiring only minimal inputs from the users.They also take care of the input validations of elemental components like textboxes, textareas , option buttons and so on.They help in the separation of the presentation logic from the entire application. One such powerful component-based web presentation framework,written in Java is Tapestry.1,2 3

Scaffolds for CRUD functions

'CRUD' functionality is the most elemental part of a scaffold based application. We need to describe the Database (tables and fields) and the pages for the CRUD functions are generated automatically. There are many CRUD scaffolding utilities available. Examples of such CRUD generators are PHP MySQL 1,MVC Scaffold Generator 2

Scaffolds for Generating Model-View-Controller

Most of the MVC based web application frameworks like Rails, Grails, have this feature.Just as we do for a CRUD generator, we need to provide the minimal information about the Data and generates the Model,Views and controllers for the same, and we have a running piece of code. In this way developer has a protype to work with instead of writing the code from the scratch. This which makes web application development, a breeze.1

SEO Scaffolds

We also have scaffolds that can be used for Search Engine optimization. Gaia framework is a pragmatic, agile framework which provides SEO scaffolding facility.Through SEO scaffolding search engines and other non-flash users can access our site easily.

Features of Scaffolds

Simplified web development

Convention Over Configuration

Separation of concerns

DRY principle

Design Approach

Easo of refactoring

Support for testing

Detailed logs of statistics of tests performed

Ease of expansion

Conclusion

External Links [1]