Modularity is the property of computer programs that measures the extent to which they have been composed out of seperate parts called modules.
Programs that have many direct interrelationships between any two random parts of the program code are less modular than programs where those relationships occur mainly at well-defined interfaces between modules.
Modular programming techniques are those which increase modularity. (See also: structured programming and procedural programming.)