Lecture overview
Keyboard shortcut: 'u'  Previous page
Keyboard shortcut: 'p'  Next page
Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide
Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Slide 22 : 42
Ad hoc abstraction

In order to control the complexity of a programmatic WWW document it is often useful to introduce ad hoc abstractions

  • URL abstractions

    • Document with lots of full URLs to the same site are difficult to maintains

includes/adhoc-abstractions/d1-with.lamlAn example with URL abstractions

An example with URL abstractions

includes/adhoc-abstractions/d1-without.lamlThe example without URL abstractions

The example without URL abstractions

  • Table abstractions

    • Tables are complicated and rich constructs in HTML. It is useful capture and abstract typical tables as LAML functions

includes/adhoc-abstractions/d2-with.lamlAn example with a table abstraction

An example with a table abstraction

includes/adhoc-abstractions/d2-without.lamlThe example without table abstractions

The example without table abstractions

  • Signature abstraction

    • Most of my documents contains my name, email address and WWW home page address

includes/adhoc-abstractions/d3-with.lamlAn example with signature abstraction

An example with signature abstraction

includes/adhoc-abstractions/d3-without.lamlThe example without signature abstractions

The example without signature abstractions