Top down design
This is the process of breaking down large tasks into smaller chunks. The idea being that the smaller chunks can be easily solved and then the whole program can be built by simply using the smaller chunks.
This is an example of a structured approach to programming. As most programming problems are compelx it is important to break down into small chunks which will be easily solved. Not only does it make the code simpler to produce it also means that the problem becomes easier to understand. It also allows you to look at the details of the problem to reduce the chance of missing key parts of the program.
The process to follow is -
- Understand the problem
- Break the problem down into smaller chunks known as modules
- Program / build the modules
- Bring the whole program together.
Other advantages of this approach is that you can test each section as you build it. This will reduce the total amount of bugs. Also modules can be assigned to different people to speed up the development of a system. Finally a module can be reused in another project which will reduce the development time of future programs.