Tag Archives: best practices

Unit testing introduction

I’m a fan of unit tests since I started writing them. So far, they also turned out to be very valuable, even if added late to a project, so let’s take a look at this whole unit test thing – … Continue reading

Posted in Programming | Tagged , | 2 Comments

Pimpl your C++ code

We’ll take a look at the PIMPL (private implementation) pattern today, which is especially useful for larger projects, where compile times become a problem. Pimpl allows to decouple the interface from the implementation, to a point where nearly each class … Continue reading

Posted in Programming | Tagged , | 4 Comments

Code quality notes

During the last term, I’ve been coding quite a bit again. Read on for some stuff to keep in mind when writing code, and for some things you better avoid. War story one: I was debugging some math class which … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

C++, <windows.h>, precompiled headers and pimpl

Today we take a look at how to make best use of precompiled headers, how to avoid the <windows.h>-is-messing-up-my-symbols-syndrome and how to properly use pimpl to reduce our compile times.

Posted in Programming | Tagged , | Leave a comment