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
Étiquette : Programming
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 😉
Defensive programming – Code Craft
Hi dear reader, I'm Xavier Jouvenot and this is the first article about Code Craft, by Pete Goodliffe. This article is the first of a series in which I will go through this book. It will make me improve as a software developer by resuming it to you, and make you learn about the subject… Lire la suite Defensive programming – Code Craft
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 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
Advent Of Code – No Such Thing as Too Much – Puzzle 17
Hello ! I'm Xavier Jouvenot and here is the part seventeenth 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 17th December 2015, named "No Such Thing as Too Much". The solution I will propose in… Lire la suite Advent Of Code – No Such Thing as Too Much – Puzzle 17
Advent Of Code – Aunt Sue – Puzzle 16
Hello ! I'm Xavier Jouvenot and here is the part sixteenth 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 16th December 2015, named "Aunt Sue". The solution I will propose in C++, but the reasoning… Lire la suite Advent Of Code – Aunt Sue – Puzzle 16
Formatting Cmake
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 Cmake
Formatting and Automation
Who during code review didn't have a coworker telling you "Please use braces one the same line as the if condition, if not, it's unreadable", or the opposite, "Here we place the bracket after the if, the code is more clearer that way", or the classic one, "Do not use tabs, use spaces for indentation"...… Lire la suite Formatting and Automation
Advent Of Code – Science for Hungry People – Puzzle 15
Hello ! I'm Xavier Jouvenot and here is the part fifteen 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 15th December 2015, named "Science for Hungry People". The solution I will propose in C++, but… Lire la suite Advent Of Code – Science for Hungry People – Puzzle 15