/* Code Musings */

Archive for the ‘Testing’ Category

Variable Arguments

Logging, printing, debugging; using printf(), and it’s sibling functions, is much like using a universal remote. It’s power comes from the fact that you can specify any amount of parameters to be printed. This is due to the usage of a variadic parameter as represented by an ellipsis (…). Now, with power comes a great […]

Unit Testing: Singletons

Singletons. There is a time and place that a developer can use the Singleton Pattern, but in my experience these situations are rare. When I first learned about this design pattern, I, like many novice developers, decided to use it everywhere. The very first incarnation of my game engine used it in a variety of […]