Testing
Unit Test Scope (Domain)
By understanding what a function is and is not responsible for we reduce duplication and make our code easier to understand and more resilient to change.
Testing
By understanding what a function is and is not responsible for we reduce duplication and make our code easier to understand and more resilient to change.
Testing
Generating test values can better express intent of input values. The examples are written using Typescript, but the same technique can be used elsewhere.
Quick Tricks
A minimal example of a project that uses cmake, conan, and gtest. I make use of the very handy cmake-conan wrapper. This setup also works seamlessly in CLion
C++20
In this article I show a way to use Concepts in the member function parameters of other Concepts using function_traits.
C++
In this article I explore a system of using C++20 Concepts for Dependency Injection
C++
In this article I use jthread, stop tokens and latches to coordinate a worker pool
Quick Tricks
Create a broken utf8 CSV for use in your unit tests
Quick Tricks
GitHub provides search functionality, but it returns every mention in code. I just needed the list of repositories. Using the GitHub API we are able to fetch these results.
Terraform
This project was used to quickly create some server-less functions with AWS Lambda and make them accessible via HTTP requests.
Quick Tricks
Use Linux Watch to continually generate passwords for you
Quick Tricks
Explore a combination of tools including pipe, grep, find, xargs, and sed to do some video conversion
Linux
We recently had an issue where one of our servers was getting out of disk space errors when trying to pull new Docker images. This caught us by surprise as none of our disk usage alerts had fired. Once we got on the box to investigate we realised that it