Jonathan Boccara's blog

A new post every Tuesday and Friday morning

More Tips On Naming

Published December 15, 2017 - 0 Comments
More tips on naming

Getting naming right is crucial to convey your intentions through code. Indeed, the compiler doesn’t care if your names are clear enough. It is just for the people who work with you. And that includes you. The clarity of the names in a piece of code has a strong impact on how easy it is […]

Mixin Classes: The Yang of the CRTP

Published December 12, 2017 - 0 Comments
Mixin classes CRTP

Now that we’re clear on how the CRTP works, let me share with you another technique involving templates that is complementary to the CRTP: Mixin classes. I learnt about mixin classes by watching Arthur O’Dwyer’s Template Normal Programming talk at CppCon (actually you can find them in the slides because they were skipped over during the presentation). I find […]

Make Your Functions Functional!

Published December 8, 2017 - 2 Comments
functions functional inputs outputs

A function takes input and produces outputs. Simple, right? If so, how come that a lot of functions in C++ code don’t look that way? And how to overcome those difficulties to make them look like proper functions and show a clear interface? This is the subject of this week’s video: Share this post! &nbsp&nbsp&nbsp&nbspDon’t […]

A Minimal Interface: Both Expressive And Fast Code

Published December 5, 2017 - 0 Comments
Minimal interface

Have you ever used std::inserter to insert the outputs of an STL algorithm into a sorted container such as an std::set? And if you have, weren’t you annoyed by how its interface forces you to specify the position to insert the elements in the set? I find this very annoying, because most of the time we have […]

7 Names We Should Never See in Code

Published December 1, 2017 - 2 Comments
bad names

Naming is such an important topic to translate our intentions into code. But are there names that we should never see in code? This is what I discuss in this week’s video: Share this post! &nbsp&nbsp&nbsp&nbspDon’t want to miss out ? Follow: &nbsp&nbsp

How to Use the STL With Legacy Output Collections

Published November 24, 2017 - 4 Comments
STL legacy code

When you start using the STL and its algorithms in your code, it’s a bit of a change of habits. And then after a while you get used to it. Then it becomes a second nature. And then even your dreams become organized into beautifully structured ranges that fly in and out of well-oiled algorithms. […]

Using Bad Code to Learn How to Write Good Code

Published November 21, 2017 - 0 Comments
bad code

Not all the code which is out there is as expressive as what we’d like. And working with bad code can be hard on motivation sometimes. In this week’s video, you’ll see 3 ways to put bad code to use, and learn from it how to write great code! Share this post! &nbsp&nbsp&nbsp&nbspDon’t want to […]

Fluent C++ Is 1 Year Old

Published November 17, 2017 - 9 Comments
Fluent C++ birthday 1 year old

So it’s been a year! It’s been a year since I decided to take up the project of running a blog. A year during which I met an incredible number of incredible people, where I wrote like a madman, where I discovered a part of myself that could actually hold that virtual pen and carry […]

Getting Inspired by Good Code

Published November 14, 2017 - 15 Comments
Getting inspired good code2

One way to write better code is… to read lots of great code! But where to find good code? In this week’s video, I detail how this technique works and several places easy to access to find good C++ to take inspiration of. And yes, you are going to see videos popping up on Fluent […]

1 2 3 12