The Advantages of Modularizing Source Code
Separating your application code into more than one
procedure has many advantages:
- You can use
multiple procedures to share common source code among many developers,
thus speeding up development and maintenance.
For example, a generalized
error message display procedure could be used by all WebFOCUS Maintain
developers. After passing a message to the generalized procedure,
the procedure handles message display. The developers do not have
to worry about how to display the message and error messages always
look consistent to end users.
- You can remove
infrequently-executed source code from a procedure and move it into its
own procedure. This reduces the size of the original procedure,
simplifying its logic, making maintenance easier, and using less
memory if the new procedure is not called.
- You can split
your application into presentation logic and database logic, and
then run each type of logic on a server optimized to support that
type of logic.