Single-Tier Applications

The problem with the code in Listing 11.1 (and indeed, all of the code written in the last chapter) is that the presentation code is closely tied to the data access code. Developers refer to this type of application as being single tiered. Basically there is one layer or tier to the application, and it contains everything from database code to application logic.

The processing of the guessing game in Chapter 9, “Programming with CFML,” is an example of application logic.

For simple applications, this may not be a problem. But as applications grow in complexity and size, so does the likelihood of something breaking later when you least expect it. Too many applications have been broken by simple changes in one part of ...

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.