Difference between revisions of "Cpp Coding Standards/CLSDESIGN/OneResp"
From Apache OpenOffice Wiki
m (Cpp Coding Standards/Class Design/OneResp moved to Cpp Coding Standards/CLSDESIGN/OneResp: consistency) |
|||
Line 1: | Line 1: | ||
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. | 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. | ||
+ | |||
+ | [[Category:Coding Standards]] |
Latest revision as of 23:10, 19 July 2007
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.