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++

How to, TipsAndTricks

How to check every return statement in c++ ?

Hi dear reader, I'm Xavier Jouvenot and in this article, we are going to talk about how to be sure to check every return statement in C++. This post was inspired by a rule from the first chapter of Code Craft, by Pete Goodliffe, on Defensive programming Does it even really matter ? Actually, it… Lire la suite How to check every return statement in c++ ?

TipsAndTricks

Memory Management and RAII

Hi dear reader, I'm Xavier Jouvenot and in this article, we are going to talk about Memory Management, more specifically in C++, even if the concept can be extended to other languages. This post was inspired by a rule from the first chapter of Code Craft, by Pete Goodliffe, on Defensive programming Why should you… Lire la suite Memory Management and RAII

TipsAndTricks

To const or not to const

Hi dear reader, I'm Xavier Jouvenot and in this article, we are going to talk about const-correctness, about when and why you should use const keyword. This post was inspired by a rule from the first chapter of Code Craft, by Pete Goodliffe, on Defensive programming. The Const-correctness Principle To define what const-correctness is, we… Lire la suite To const or not to const

How to

How can you check type limits in C++ ? And create your own limits 😉

Hi dear reader, I'm Xavier Jouvenot and in this article, we are going to talk about how to check type limits in c++. This post was inspired by a rule from the first chapter of Code Craft, by Pete Goodliffe, on Defensive programming. Why check type limits ? Let's start by talking about why and… Lire la suite How can you check type limits in C++ ? And create your own limits 😉

AdventOfCode

Advent Of Code – Like a GIF For Your Yard – Puzzle 18

Hello ! I'm Xavier Jouvenot and here is the part eighteenth of a long series on Advent Of Code. You can find the previous part here For this new post, we are going to solve the problem from the 18th December 2015, named "Like a GIF For Your Yard". The solution I will propose in… Lire la suite Advent Of Code – Like a GIF For Your Yard – Puzzle 18

Formatting

Formatting Cpp, C, Javascript And Other Stuff

Hello dear reader, if you ever came to this article wondering if you should format your code, you can stop reading right now, and go check my other post on that topic. But if you are convinced that code should be formatted, and automatically formatted, first of all welcome 🙂 this post is made for… Lire la suite Formatting Cpp, C, Javascript And Other Stuff