Joy of Programming: Fail Fast!
When a problem occurs in the software, it should fail immediately, in an easily noticeable way. This “fail fast” behaviour is desirable, and we’ll discuss this important concept in this column. At first,…
Joy of Programming: Calling Virtual Functions from Constructors
Calling virtual functions from constructors is problematic, and this problem can manifest itself in many ways. In this column, we’ll take a look at this problem, with specific examples. Last year, I bought…
CodeSport (May 2011)
Welcome to CodeSport! In this month’s column, we continue our discussion on memory access errors. In last month’s column, we had discussed a set of questions that could prove helpful to our student…
Joy of Programming: Penny Wise and Pound Foolish!
We often try to use a smaller data type to save space. Though it looks like clever programming, it can cause nasty bugs. Let’s look at an example that demonstrates this. A few…




