How to

Magic numbers and how to deal with them in C++

Hi dear reader, I'm Xavier Jouvenot and in this article, we are going to talk about magic numbers. This post was inspired by a rule from the fourth chapter of Code Craft, by Pete Goodliffe, on Defensive programming. What is a Magic number ? A magic number is a raw number in the code. This… Lire la suite Magic numbers and how to deal with them in C++

Code Craft

The Power Of Naming – Code Craft

Hi dear reader, I'm Xavier Jouvenot and this is the third article about Code Craft, by Pete Goodliffe. If you want, you can look at the previous article about 'Coding Standard', and you can find book here. The chapter we will treat today, is named 'What's In A Name - Giving Meaningful Things Meaningful Names'.… Lire la suite The Power Of Naming – Code Craft