Category Archives: c++

RockScroll

RockScroll is a really useful plugin for every VisualStudio developer. The tool basically substitute the normal scrollbar from the VS IDE with an overview of the code itself. One of the feature I really consider useful is that if you … Continue reading

Posted in c++, code, programming | Tagged | Leave a comment

LHS and the __restrict keyword

An interesting reading for people who works with Xbox 360 and PS3. — Una lettura interessante per chi lavora con Xbox360 e PS3. http://assemblyrequired.crashworks.org/2008/07/08/load-hit-stores-and-the-__restrict-keyword/

Posted in c++ | Tagged , , | Leave a comment

Sequence point

This is an interesting page about “Sequence point“. For example, what happens if we write the following code? int i=10; int n = i + i++; In this case we are both incrementing i and adding his own value. Well, … Continue reading

Posted in c++, code | Tagged | Leave a comment

Tip of the day: use pre-increment when possible!

This is just a small tip for all the C++ coders: try always to use pre-increment on your variable when it’s possible, so, for example, remember to write ++i instead of i++ The general rule should be to always use … Continue reading

Posted in c++, programming | Tagged , , | 3 Comments

Google code style

Here is the Google guideline to writing code By the way, the best think is always to keep consistency in the style the code is written with. A good programmer is always able to read a consistent code. – Queste … Continue reading

Posted in c++, programming | Leave a comment

Assignment Operators & Copy Constructors

Lee Winder, Technical Manager of Blitz Arcade (http://www.blitzarcade.com/),explains the C++ problems we can incur on copying two class without an explicit definition of the copy constructor and the assignment operator. Have fun! – Lee Winder, Technical Manager di Blitz Arcade … Continue reading

Posted in assignment, c++, constructor, operator, winder | Leave a comment