Cpp Coding Standards/CLSDESIGN/OneResp

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

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

When implementing a class, you should focus on one thing at a time. Following that rule makes it both easier to explain (and memorize) what a class does, and use it. This is because fitting more than one aspect into it makes it disproportionally harder to reuse the class in a different context.

Personal tools