Cpp Coding Standards/CLSDESIGN/OneResp

From Apache OpenOffice Wiki
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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