Clarence Westberg's Radio Weblog : No matter how cynical you get, it is impossible to keep up
Updated: 10/3/2003; 8:03:16 AM.

 

Powered by:

Subscribe to "Clarence Westberg's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Google
Search WWW Search radio.weblogs.com

Saturday, September 27, 2003

Let me tell you about.... Bill Clementson posts that although a lot of people are interested in the use of continuations for web applications programming, nobody has yet come up with an elevator pitch explanation of their benefits. My pitch usually goes something like this: "Continuations bring precisely the same benefits to traditional web development that subroutines bring to GOTOs". Julian Fitzell and I had to expand on this for a tutorial we gave at Smalltalk Solutions. Here's the first part of the abstract:

Dijkstra may have taught us 45 years ago that GOTO was a bad idea, but web development has barely caught up. In the CGI model of web applications, each link that is followed triggers an entirely new execution of the program. Building complex control flow out of these abrupt transitions can lead to a tangled and brittle mess of interdependent pages. Modern frameworks such as WebObjects and Struts may remove many of the difficulties of CGI scripting, but they do not escape the web's inherent GOTO: moving from one page to the next, whether through anchors, actions, forms, or forwards, is still a simple one-way jump.

Seaside is a framework for developing web-based applications that insulates the developer from the HTTP request/response loop, presenting the illusion of a continuous interactive session with the user. Each page or form acts much like a subroutine, which returns a value to its caller based on user input. Complex, conditional or looping workflows can be described in a single piece of straightforward Smalltalk code as a sequence of calls to individual pages. The benefits this brings to the reusability and maintainability of web applications closely mimick the advances made by structured programming long ago.

[Avi Bryant]
9:14:14 AM    Clarence Westberg's Links & Comments trackback []

© Copyright 2003 Clarence Westberg.



Click here to visit the Radio UserLand website.

 


September 2003
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Aug   Oct

miniXmlCoffeeMug.gif miniXmlButton.gif Wi-Fi Networking News