Author Archive

Tuesday, April 1st, 2008

Coding tips: Generational Naming

All too often, you need to make a new version of a function that does something a little bit different than the original function. Perhaps it just takes a new argument or removes an unused one. Maybe it’s a wrapper around the original function that does some more cool stuff. Furthermore, for backwards compatibility, you [...]

2 Comments » - Posted in Programming by

Wednesday, November 14th, 2007

C++ Tips: Pointers and Memory Management

If C++ programmers had a bill of rights, one of those rights would be stated “The Right to own and bear pointers.” As much as modern languages tout garbage collection and dispell themselves of the concept of a pointer, the fact remains that you will achieve better performance if you manage your own memory, and [...]

7 Comments » - Posted in Programming by

Wednesday, October 10th, 2007

Using Binary Search to Debug Compiler Crashes

If you have used g++ and gcc over the years, you know that sometimes you get the worst compiler error of all: 1g++: Internal error: Segmentation Fault (program cc1plus) While this message is very friendly and informative, it doesn’t help you get your code compiled. So, what do you do when your code masterpiece, for [...]

1 Comment » - Posted in Programming by