C++ Tips

XML RSS feed for this category.
[Valid RSS]


The most important C++ stuff, ever... Posted by Len at 8 Sep 2006 12:11 PM
I'm still skiing in Argentina, the training is going well and within 3 weeks I'll know if I make the grade and qualify as a BASI Ski Instructor... Because of all the skiing and partying and work out here I...


C++ Tips: 4 - Learn to work in terms of abstractions, no matter how small Posted by Len at 6 Jan 2006 10:10 PM
In the fight to make C++ code easier to reason about and understand, never underestimate the value of a name. Giving something a decent name is the first step in thinking about the concept at a slightly more abstract level....


C++ Tips: 3 - Strive to be const correct Posted by Len at 4 Jan 2006 10:34 PM
Another extremely powerful tool that you can use to ensure that your C++ code communicates as clearly as possible is const. By correctly using const all the time when designing your abstractions you can divide an object's interface into two...


C++ Tips: 2 - Avoid designing undefined behaviour Posted by Len at 3 Jan 2006 07:45 PM
When designing code it's often easy to include undefined behaviour. The need for code that exhibits this kind of behaviour is, however, generally pretty rare and there are often ways around allowing undefined behaviour. In general it's usually best to...


C++ Tips: 1 - Avoid unnecessary optionality Posted by Len at 3 Jan 2006 12:14 PM
One of my main aims when writing code in C++ is to have the code clearly communicate its purpose. I find it useful to be able to look at a single line in isolation and have a pretty good idea...