Modularizing your code

Modular code is contained in an isolated functional unit with a well‑defined, published interface (i.e., an argument list). The published interface tells the programmer how to use the code, and all functionality is provided through that interface.

In modular code, routines are usually short and perform single tasks. They do not rely on global data to accomplish their tasks. Data is passed via arguments, and global or common data is kept to a minimum.

For more information on designing a modular distributed application, see Design considerations in the “Accessing Logic Remotely with xfServerPlus” chapter of Getting Started with Synergy/DE.