Partners: KDAB Whole Tomato Software CppDepend

28 September 2018

C++ Links #4

Welcome to new C++ Links - most important and useful articles, podcasts and videos that happen between 22th and 28th of September.

This week CppCon took place - the biggest C++ conference. In today’s list, you will find the first video from there, about future of C++, you can also see a post about removing duplicate elements from associative containers and an example of really defensive programming.

  1. Post from Christopher Di Bella - he starts with an algorithm that checks if a number is prime (he uses 6k±1 optimisation), and he refactors it using functionally-composed solution. This post can change the mindset of writing clean, readable code using ranges!
    cjdb.com.au/a-prime-opportunity-for-ranges

  2. If you wonder how really defensive programming looks like, you must read below the article! Philippe Groarke presents an interesting way of doing it, with lots of static_asserts:
    philippegroarke.com/posts/2018/easy_defensive_programming/

  3. A new episode of C++ Weekly from Jason Turner - he rethinks visitor pattern presented in one of the old episode with inheriting from lambda. It looks like with C++17 we don’t have to write so much code - proposed solution looks definitely better:
    youtube.com/watch?v=EsUmnLgz8QY

  4. Post from Jonathan Boccara - he describes how to remove duplicated elements from associative containers:
    fluentcpp.com/2018/09/25/remove-duplicates-associative-container-cpp/

  5. Rainer Grimm wrote an introduction post before writing about concepts. He shows why do we need generic functions, and when generic is “too generic”:
    modernescpp.com/index.php/c-core-guidelines-rules-for-the-usage-of-concepts

  6. We were all waiting for this - first video from CppCon conference, an absolute must-see! Our father, Bjarne Stroustrup, is showing how C++ Concepts will change writing generic code:
    youtube.com/watch?v=HddFGPTAmtU

  7. Post from Arthur O’Dwyer: he presents “perfect backwarding”:
    quuxplusone.github.io/blog/2018/09/25/perfect-backwarding/

  8. Post from Arne Mertz about the difference between creating shared_ptr via a regular constructor and std::make_shared. It looks like make_shared also has disadvantages:
    arne-mertz.de/2018/09/make_shared-vs-the-normal-shared_ptr-constructor/

  9. Jonathan Boccara wrote an article about using auto for declaring variables. He present pros/cons about this style, definitely worth reading:
    fluentcpp.com/2018/09/28/auto-stick-changing-style/

  10. Abseil has shipped optimized hash containers and a new hashing framework.
    abseil.io/blog/20180927-swisstables

You can also track the CppCon Youtube Channel where more and more videos start to appear!
youtube.com/user/CppCon

What’s your favourite link for this week?
Maybe we missed something relevant?
Let us know in comments.

The links are brought to you by Wojciech Razik.
Wojtek is a Senior C++ developer at Thaumatec, currently writing software for a robot. He enjoys reading C++ Standard before bed, and he loves to hate JS from dawn to dusk.
If you know Polish, take a look at cpp-polska.pl where Wojtek is one of the co-authors.

Get my free ebook about C++17!

More than 50 pages about the new Language Standard.

C++17 in detail, by Bartlomiej Filipek

© 2017, Bartlomiej Filipek, Blogger platform
Any opinions expressed herein are in no way representative of those of my employers.
This site contains ads or referral links, which provide me with a commission. Thank you for your understanding.