Cpp Coding Standards/DESIGN/CyclDep

From Apache OpenOffice Wiki
< Cpp Coding Standards‎ | DESIGN
Revision as of 22:29, 7 January 2007 by Thorsten (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Avoid unnecessary dependencies (because they increase coupling, and thusly (re)compile time). Cyclic dependencies are even worse: they glue two (or more) seemingly unrelated units together, into something larger, whose parts cannot be used (or tested, or deployed) in isolation.

Use the dependency inversion principle to break cyclic dependencies.

Personal tools