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 9: Line 9:
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 [http://en.wikipedia.org/wiki/Create,_read,_update_and_delete 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 [http://en.wikipedia.org/wiki/Scaffold_(programming)#Dynamic_scaffolding '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 [http://en.wikipedia.org/wiki/Rapid_application_development rapid development].
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 [http://en.wikipedia.org/wiki/Create,_read,_update_and_delete 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 [http://en.wikipedia.org/wiki/Scaffold_(programming)#Dynamic_scaffolding '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 [http://en.wikipedia.org/wiki/Rapid_application_development rapid development].


‘Scaffolds’ are one of the Wow! factors of the [http://en.wikipedia.org/wiki/Ruby_on_Rails ‘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 flavour of it. Some of the well known frameworks are [http://en.wikipedia.org/wiki/Grails_(framework) Grails],[http://en.wikipedia.org/wiki/MonoRail_(software) Monorail (.Net)],[http://en.wikipedia.org/wiki/CakePHP CakePHP], [http://en.wikipedia.org/wiki/ASP.NET_Dynamic_Data ASP.NET Dynamic Data], [http://en.wikipedia.org/wiki/Django_(web_framework) Django].
‘Scaffolds’ are one of the Wow! factors of the [http://en.wikipedia.org/wiki/Ruby_on_Rails ‘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 [http://en.wikipedia.org/wiki/Grails_(framework) Grails],[http://en.wikipedia.org/wiki/MonoRail_(software) Monorail (.Net)],[http://en.wikipedia.org/wiki/CakePHP CakePHP], [http://en.wikipedia.org/wiki/ASP.NET_Dynamic_Data ASP.NET Dynamic Data], [http://en.wikipedia.org/wiki/Django_(web_framework) Django].


== 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
worth noting that such a concept of 'rapid development' existed even before Rails and its counterparts existed.Oracle HTML DB renamed as [http://en.wikipedia.org/wiki/Oracle_Application_Express 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 Oracles own tools.
worth noting that such a concept of 'rapid development' existed even before Rails and its counterparts existed.Oracle HTML DB renamed as [http://en.wikipedia.org/wiki/Oracle_Application_Express 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 ==
== Types of Scaffolds ==
Scaffolds could be broadly classified under the following categories based on their functionality.
Scaffolds could be broadly classified under the following categories based on their functionality.


=== Scaffolds for generation of Web pages ===
=== 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.[http://tapestry.apache.org/tapestry3/quotes.html 1],[http://www.manning.com/lewisship/ 2]
[http://static.raibledesigns.com/repository/presentations/ComparingJavaWebFrameworks-ApacheConEU2007.pdf 3]
 
=== Scaffolds for CRUD functions ===
=== Scaffolds for CRUD functions ===
symfony
=== Scaffolds for Application development ===
=== Scaffolds for Application development ===
=== Scaffolds for generation of UI screens ===
=== Scaffolds for generation of UI screens ===

Revision as of 02:35, 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 broadly 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

symfony

Scaffolds for Application development

Scaffolds for generation of UI screens