Code Craft

Encapsulation as a defensive programming technique

Hi dear reader, I'm Xavier Jouvenot and, in this article, we are going to talk about Encapsulation, 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 What is it ?… Lire la suite Encapsulation as a defensive programming technique

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

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

Code Craft

Self-documentation

Hi dear reader, I'm Xavier Jouvenot and this is the fourth article about Code Craft, by Pete Goodliffe. If you want, you can look at the previous article about 'What's In A Name', and you can find book here. The chapter we will treat today, is named 'The Write Stuff - Techniques for Writing "Self-Documenting"… Lire la suite Self-documentation

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

Code Craft

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