Yearly Archives: 2017

Ranges: the STL to the Next Level

Published January 12, 2017 - 1 Comment

I first wrote this post on Simplify C++!, Arne Mertz’s blog on clean and maintainable C++. You can see the original version of this post here. As seen in a dedicated post, The C++ Standard Template Library (STL) is a fantastic tool for making code more correct and expressive. It is mainly composed of two […]

Know your algorithms: algos on sets

Published January 9, 2017 - 6 Comments

This post is part of the STL learning resource. To get the bigger picture of the STL topics that I intend to cover on Fluent C++, you can go have a look at the dedicated page at fluentcpp.com/STL. The purpose of this series of posts is to give you an opportunity to accumulate — no pun intended! — […]

The importance of knowing STL <algorithm>s

Published January 5, 2017 - 10 Comments

STL algorithms are a fantastic set of tool to improve expressiveness and correctness of your code. As outlined in Sean Parent’s famous talk C++ Seasoning the reality is quite straightforward: one needs to know his algorithms. This post explains you how STL algorithms are to be used, and what they can bring to you. Algorithms versus for loops […]

Super expressive code by Raising Levels of Abstraction

Published January 3, 2017 - 11 Comments

In this post I would like to propose a technique based on levels of abstraction to transform an obscure piece of code into expressive and elegant one. You’ve been quite a few to take up the Christmas Break Challenge for writing expressive code, by posting a comment on the challenge post or by chipping in on Reddit. […]

1 9 10 11