Previous Topic: Design GoalsNext Topic: Choosing Standard Programs


Program Types

Just as there are types of buildings, the instances of which, although individually different, are within type all fundamentally similar by the very nature of the purpose they are intended to fulfill, so are there program types, whose structure is dictated by the underlying structure of the data on which they operate.

An effective use of program type can vastly increase productivity. If programs are written to be as data independent as possible, then writing a program of an existing type to work on a new file is mainly a matter of changing the names of the references to the external database. Changing names is a much less error prone process than changing logic.

Such an approach is carried to its logical conclusion in CA 2E, which has a number of standard program types. Each program type is available to operate on any file in the database—nominating a file and a function type is sufficient to specify an entire program.

You should try to design your application using standard types, in as ‘pure’ or unmodified of a form as possible.