Jonathan Boccara's blog

Should structs Have Constructors in C++

Published June 15, 2018 - 10 Comments

I originally wrote this article for Morning Cup of Coding. Morning Cup of Coding is a newsletter for software engineers to be up to date with and learn something new from all fields of programming. Curated by Pek and delivered every day, it is designed to be your morning reading list. Learn more. C++ structs are little bundles […]

Fluent C++ is open to guest posting

Published June 1, 2018 - 0 Comments

Know something about writing good code, that other developers could benefit from? Want to put your ideas in front of a lot of motivated programmers? Fluent C++ may be the right place for your writing. Here is what guest posting on Fluent C++ is about, what it can bring to you, and how to submit […]

A Concrete Example of Naming Consistency

Published May 29, 2018 - 18 Comments

One of the common guidelines about naming things in code is to be consistent. But what does that mean, in practice? I had the chance to be at C++Now this year, and attend Tony Van Eerd’s great talk called Words of Wisdom, where he gave a very practical approach to that question (amongst many other […]

Beautiful Pieces of Code That Print 42 for Towel Day

Published May 25, 2018 - 3 Comments
towel day 42 C++

Today is Towel Day!! This is the day where we celebrates the iconic piece of geek culture: the Hitchhiker Guide to the Galaxy. In the Hitchhiker Guide to the Galaxy, the number 42 has a central role: it is no less than the Answer to the Ultimate Question of Life, the Universe, and Everything. This is […]

How to Turn a Hierarchy of Virtual Methods into a CRTP

Published May 22, 2018 - 5 Comments
virtual methods CRTP

After reading the series of posts on the CRTP, Fluent C++ reader Miguel Raggi reached out to me with the following email (reproduced with his permission): Dear Jonathan Boccara, […] After reading the posts on the curiously recurring template pattern, I’m wondering how to (expressively) implement this with 3 or more classes. Say, you have 3 […]