Jonathan Boccara's blog

RestMyCase: A C++ Library for Formatting String Cases

Published January 8, 2019 - 0 Comments

Today’s guest post is written by guest author JFT. Interested in writing on Fluent C++ too? Submit your guest post! In his 29 June 2018 blog post about C++ summer projects, Jonathan suggested seven more ways to get better at C++ during the summer of 2018. One of these was a project to implement ‘Title Case’ […]

Functional Programming Is Not a Silver Bullet

Published January 4, 2019 - 0 Comments
functional programming

The past few years have seen a boost in popularity of the functional programming paradigm. Languages that were used mostly in academic circles for decades are now in broader use amongst programmers. And every couple of months, another functional language hits the news and gets its trail of followers. Why is that? Functional programming allow […]

TODO_BEFORE(): A Cleaner Codebase for 2019

Published January 1, 2019 - 0 Comments
TODO_BEFORE C++ clean code 2019

By Aurelien Regat-Barrel.  It all started with a joke: create a compilation “time bomb” based on static_assert and the __DATE__ macro to celebrate the new year. Quite fun to do! But also quite useless, isn’t it? Well, the more I think about it, the more I’m convinced it can be used to control and reduce […]

A Simple Timer in C++

Published December 28, 2018 - 0 Comments
timer C++

Some languages, such as JavaScript or Visual Basic, offer the feature of a timer, that is to say an object that calls some code at defined intervals. At the time of this writing (C++17) and to my knowledge, C++ doesn’t offer such a feature. A library called timercpp, that replicates in C++ this handy functionality […]

A Free Ebook on C++ Smart Pointers

Published December 25, 2018 - 2 Comments
C++ smart pointers free ebook

To write expressive code in C++, mastering smart pointers is a necessity! Without them, our code becomes littered with memory management, news and delete, and unclear semantics about who owns what resources. If you’re part of my mailing list (which you can join at the bottom of this post), you will get as a Christmas gift […]

The SoA Vector – Part 2: Implementation in C++

Published December 21, 2018 - 0 Comments

Today’s guest post is the second part of a two-posts series written by Sidney Congard. Sidney is an almost graduated student and an intern at QuasarDB, a company writing it’s own database in C++17. He has been doing C++ in his free time regularly for two years. Also interested in writing on Fluent C++? Check […]

Named Arguments in C++

Published December 14, 2018 - 9 Comments

Ah, named arguments! If the term “feature envy” wasn’t already used to designate a refactoring, we would have employed it to talk about named arguments: it’s a feature that languages that don’t have it envy to the languages that do. Named arguments consist in specifying at call site the parameter names of the arguments passed. […]

Overview of std::map’s Insertion / Emplacement Methods in C++17

Published December 11, 2018 - 2 Comments
insert_or_assign try_emplace map C++

Today’s guest post is written by @walletfox, one of the hitchhikers in the C++ galaxy, trying to navigate its dark corners by writing articles, creating Mostly Harmless cheat sheets and observing the following rules: “Don’t panic! Always carry a cheat sheet next to the towel. So long and thanks for all the fish.”. Interested in writing on Fluent C++ too? Submit your […]