Programming

Tuesday, July 24, 2007

26 ways to write Hello world!

In my latest article, Demystifying design patterns, I apply some design patterns to the Hello World program. For beginners this is a useful tutorial in patterns. For advanced programmers, it is an amusing new look at Hello World.

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.