Drew GrossMove-in-move-out in C++This article describes the move-in-move-out pattern in C++. It is intended to be used as a quick reference to be linked to.May 2, 2022May 2, 2022
Drew GrossData & ObjectsIn most programming languages, you can create your own types. This is a major productivity boost, I would not recommend using a language…Mar 6, 2021Mar 6, 2021
Drew GrossCheap CoverageMuch has been said about how much testing is appropriate for software. For safety-critical programs like aviation software, you better…Jul 14, 2020Jul 14, 2020
Drew GrossA Taxonomy of WrappersProgrammers write a lot of wrapper functions. Sometimes the wrappers do a lot, and sometimes only a little. Sometimes they do too much…Jul 14, 2020Jul 14, 2020
Drew GrossAssign-Through vs. Rebinding: The 3rd option nobody talks aboutI’ve been reading a bunch of articles about std::optional<T&> recently, and it’s a very contentious topic. In C++ 17, attempting to create…Jan 26, 2020Jan 26, 2020
Drew GrossHow to Safely Create Test-Only Modes with Bazel and C++Sometimes people to want to put a function in a separate “mode” in unit tests only. This article shows you how to do that safely with…Nov 27, 2019Nov 27, 2019