Modular programming
Modular programming is a programming style that breaks down a task into modules, each of which accomplishes one task and contains all the source code and variables needed to finish that task.
By segmenting the program into modules, we can isolate the source of the program errors to a small segment of the code
Modular programming-Why?
- Is a solution to the problem of very large programs that are difficult to debug
- Makes development faster
- Easier to debug, update and modify
- Leads to a structured approach, as a complex problem can be broken into simpler tasks
- One module may use another module, to achieve its purpose
- Each module works independently of another
- Encourages re-use of code