Programming

Wednesday, July 04, 2007

The 10 commandments of C++

1. Thou shalt use an automated build process with no manual steps
2. Thou shalt run automated tests with every build
3. Thou shalt avoid short or cryptic names
4. Thou shalt avoid avoid embedding constants and data within code
5. Thou shalt see when things get too big, and thou shalt split them
6. Thou shalt document every function
7. Thou shalt analyse defects for their root cause
8. Thou shalt use standard containers liberally, and avoid pointers.
9. Thou shalt write exception-neutral code using RAII
10. Thou shalt write for reuse.

1 Comments:

Post a Comment

<< Home