Everybody who started in a language other than a web scripting one has written programs like this:

WriteLn('What''s your name?');
WriteLn('What''s your age?');
WriteLn('Hello ' + name + ', you are ' + age + ' years old.');

(Yeah sorry, I started in Turbo Pascal.)

All was nice and dandy until you start writing web applications. All of the sudden you can’t write applications like that anymore. You have to do stuff like this:

switch($_GET['step']) {
echo '<form action="?step=1>';
echo 'What's your name?';
echo '<input name="name"/><input type="submit"/>';
echo '</form>';
$_SESSION['name'] = $_GET['name'];
echo '<form action="?step=2>
echo 'What's your age?';
echo '<input name="age"/><input type="submit"/>';
echo '</form>';
$name = $_SESSION['name'];
$age = $_GET['age'];
echo "Hello $name, you are $age years old.";

The general pattern is here is that you have to store your state and restore the state of your application on every page view. This makes writing web applications very inconvenient.

Continuations allow you to write applications almost the nice old-fashioned way. Continuations are a standard feature of Ruby, in other languages it is a harder to accomplish. Continuations all of sudden became a hot issue in the past weeks. Some articles that explain how continuations work and how to implement them:

* “Sam Ruby: Continuations for Curmudgeons”:
* “Dynis Ducher: Continuations Made Simple and Illustrated”:
* “Continuations on the Web”:
* “IBM developerWorks: Use continuations to develop complex Web applications”:
* “Borges”: a Ruby web application framework that is based on continuations
* “Continuations in Python”:
* “Don Box: Continuing Continuations”: