Ways to Refactor Toggle/Boolean Parameters in C++--Bartlomiej Filipek

What's your preferred way?

Ways to Refactor Toggle/Boolean Parameters in C++

by Bartlomiej Filipek

From the article:

Boolean parameters in a function might be misleading and decrease its readability. If you have a poorly named function like:

DoImportantStuff(true, false, true, false);

As you can imagine, it’s not clear what all those parameters mean? What’s the first true? What does the last false mean? Can we improve code in such cases?

Let’s have a look at possible improvements...

CppCon: Announcing safety policy

On the CppCon blog:

Announcing CppCon Safety Policy

From the article:

The point of CppCon is to learn and connect with colleagues. The Standard C++ Foundation Board is committed to ensuring that you can participate in an environment that is welcoming and safe. ... We take all reports of misconduct seriously, even if it does not occur at CppCon but could affect CppCon attendees.

Next week: Meeting C++ online job fair

Next week the first online C++ job fair in 2022 is happening on Tuesday and Wednesday featuring 7 C++ employers, more might join. You can share your CV/resume with the sponsors of the event.

Meeting C++ online job fair

by Jens Weller

From the article:

Join the online C++ job fair on the 15th and 16th March organized by Meeting C++. The job fair will start at 15:00 CET and go until 18:00 on March 15th, on March 16th the event will be in the evening from 20 - 23:00 CET. Companies can choose to be present on both or only one of these events, or to only receive CVs through Meeting C++.

Wordlexpr: compile-time Wordle in C++20 -- Vittorio Romeo

This article shows a fully compile-time implementation of the popular game Wordle in C++20, and explains its inner workings:

wordlexpr: compile-time wordle in c++20

by Vittorio Romeo

From the article:

It felt wrong to not participate in the Wordle craze, and what better way of doing so than by creating a purely compile-time version of the game in C++20? I proudly present to you… Wordlexpr!

https://www.youtube.com/watch?v=wp3LPrhu2Sk

My favorite C++20 feature--Marius Elvert

Did you know?

My favorite C++20 feature

by Marius Elvert

From the article:

As I evolved my programming style away from mutating long-lived “big” objects and structures and towards are more functional and data-oriented style based mainly on pure functions, I also find myself needing a lot more structs. These naturally occur as return types for functions with ‘richer’ output if you do not want to use std::tuple or other ad-hoc types everywhere. If you see a program as a sequence of data-transformations, I guess the structs are the immediate representations encoded in the type system...