Jonathan Boccara's blog

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 […]

Using Strong Types to Return Multiple Values

Published November 10, 2017 - 14 Comments

We’ve seen how strong types helped clarifying function interfaces by being explicit about what input parameters the function expected. Now let’s examine how strong types help clarifying functions that return several outputs. We’ll start by describing the various ways to return several outputs from a function in C++, and then see how strong types offer an […]

Calling Functions and Methods on Strong Types

Published November 7, 2017 - 7 Comments
Functions methods strong types C++

Strong types are a way to put names over data in code in order to clarify your intentions, and the more I work on it the more I realize how deep a topic that is. So far we’ve seen the following subjects in our series on strong types: Strongly typed constructors Strong types for strong interfaces […]

How Unit Tests Help Express Your Code’s Intent

Published November 3, 2017 - 2 Comments
unit test intentions

Guest writer Tim Scott talks to us about how to make unit tests express the intentions of a piece of code. Tim is a software developer and tester passionate about software quality and automation. You can find him online on DeveloperAutomation.com, his blog about increasing quality and developer efficiency through automation, or on his Twitter or […]

Function Aliases In C++

Published October 27, 2017 - 10 Comments

One thing that dramatically improves the expressiveness of a piece of code is respecting its levels of abstractions. It sometimes involves massive refactorings, but in many cases it just comes down to choosing good names in your code. Picking a name that is consistent with the abstraction level of the surrounding code can make a […]

The Results of the Expressive C++17 Coding Challenge

Published October 23, 2017 - 14 Comments
Expressive C++17 coding challenge

The Expressive C++17 coding challenge has come to an end after being open for three weeks, for submissions of the clearest code using C++17. It was a joint challenge between Bartek’s coding blog and Fluent C++, and its point was to learn collectively how to use C++17 to write clearer code. We’ll see the winner and […]

(std::)Accumulate Knowledge On STL Algorithms

Published October 17, 2017 - 0 Comments
accumulate

If there’s one algorithm that lets you do all sorts of things, that must be std::accumulate. It is important to know how to use it, and also how not to use it. This post is part of the STL Learning Resource. Basic usage Numeric types The first thing to know about std::accumulate is its location: the […]