Unit Tests are not Friends
Don’t get me wrong. Unit tests are your friends when developing a class. But they should not be that class’ `friend`. Here’s why.
Don’t get me wrong. Unit tests are your friends when developing a class. But they should not be that class’ `friend`. Here’s why.
Today I came across the video of a talk of Bjarne Stroustrup, where, among other things, he states that C++ is not an object oriented language. This contradicts what many […]
Here we go again with two features that have been added in C++11 that can greatly simplify the code we write.
This is my second post of a series on new C++ features, where new means C++11 and up. Keyword `auto` for variable type deduction is one of the most known […]
With this post I’ll start a series on new C++ features, where new means C++11 and up. I usually won’t go into too much technical details of the features, because […]
It’s been almost six months now that I started this blog, and the resonance is better than I would have dreamed back then.
A few years ago when C++11 was published, people saw that C++ might be becoming a different language and a wave of enthusiasm got hold of the C++ community. “C++ is back!” […]
Sometimes I see functions that are meant to return a range of values, but instead of returning a container, they take one as out-parameter. There are several reasons why that […]
Last week I wrote about what makes C++ a good choice as a host language for embedded DSLs. This week’s post will be about external DSLs with C++ as host […]
Domain-specific languages (DSLs) can be powerful tools to simplify certain aspects of programming. While DSLs can be used in most or all programming languages, I think there are a few […]