Modules and programming design

By breaking code down and splitting it into different sections it makes it much easier to maintain. Each module is created so it can be used indepentantly as possible. This allows modules to be reused by other programs which can reduce the devlopment time of new builds.

Modules make code easier to maintain. Bugs can be isolated in a single module which means that will be eaiser to find and fix.

A module can be thought of as a function or a class. It could be a collection of functions OR a collection of classes. This may seem confusing but we are not splitting the program up physically (i.e. 1 function = 1 module) but logically where a subset of the code will represent a single module.

Read the section on topdown design for more details.

next programming modules >>