Originally Published: Monday, 2 October 2000 Author:
Published to: develop_articles/Development Articles Page: 1/1 - [Std View]

Unix Web Application Architectures - Part 5: An Alternate Approach

In this last chapter of the document I'll mention a completely different approach to web application development. I call this style "Abstracted HTML."

Unix Web Application Architectures
1. Introduction and Basic Approaches
2. The Web Server
3. Sessions, Authentication, and Databases
4. Other Issues
5. An Alternate Approach

15 An Alternate Approach: Abstracted HTML

In this last chapter of the document I'll mention a completely different approach to web application development. I call this style "Abstracted HTML."

In this approach, web programming is made to feel to the programmer as much like traditional GUI programming as possible. HTML elements and constructs are wrapped in persistent objects that know how to render themselves using the browser, and HTTP requests are handled as GUI callbacks. The objects are kept in memory or stored on disk between requests. When a callback for an object arrives, the appropriate method of the object is invoked.

Below is the commented source of that application. Notice that the code is short and easy to understand even for someone who has never done web programming. The question is, does this approach scale to larger programs, or is the web technology too different from traditional GUI programming to make this viable?


Copyright (c) 2000 by Samuli Kärkkäinen <skarkkai@woods.iki.fi>. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/).

Up-to-date versions of the entire Unix Web Application Architectures document is available at webapparch.sourceforge.net.