Code Craft, How to

How to write proper comments ? – Code Craft

Hi dear reader, I'm Xavier Jouvenot and this is the fifth article about Code Craft, by Pete Goodliffe. If you want, you can look at the previous article about 'Self Documentation', and you can find book here. The chapter we will treat today, is named 'A Passing Comment - How to write Code Comments'. Back… Lire la suite How to write proper comments ? – Code Craft

How to

How to set up Visual Studio Code command line on OSX ? – Quick Tip

Two week ago, I had to reinstall all the tools I use on a new computer, since the previous one passed away ☠️ And since I often use Visual Studio Code when developing, (please, no debate over which text editor is the best in the comment 😝), I had to reinstall it and make it… Lire la suite How to set up Visual Studio Code command line on OSX ? – Quick Tip

How to

How to set up Sublime Text command line on OSX ? – Quick Tip

Last week, I had to reinstall all the tools I use on a new computer, since the previous one passed away ☠️ And since I use Sublime Text as a default text editor, (please, no debate over which text editor is the best in the comment 😝), I had to reinstall it and make it… Lire la suite How to set up Sublime Text command line on OSX ? – Quick Tip

TipsAndTricks

Bug fixes and Defensive Programming

Hi dear reader, I'm Xavier Jouvenot and in this article, we are going to talk about we should add assertion each time we correct a bug. This post was inspired by a rule from the first chapter of Code Craft, by Pete Goodliffe, on Defensive programming. Small Recap on Defensive Programming For those who have… Lire la suite Bug fixes and Defensive Programming

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

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

Code Craft

Coding Standard – Code Craft

Hi dear reader, I'm Xavier Jouvenot and this is the second article about Code Craft, by Pete Goodliffe. If you want, you can look at the previous article about 'Defensive Programming', and you can find book here. The chapter we will treat today, is named 'The Best Laid Plans - The Layout and Presentation of… Lire la suite Coding Standard – Code Craft

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 😉