Hello ! I'm Xavier Jouvenot and today, we are going to see why the std::clamp and std::ranges::clamp functions of the C++ standard are badly designed and how we can simply improve it. Self promotion: Here are a few social networks where you can follow me and check my work as a programmer and a writer… Lire la suite The clamp functions are badly designed
Étiquette : Debugging
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