jroddev

jroddev

jroddev
Unit Test Scope (Domain)

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.

By jroddev 21 Apr 2022
Smaller, Clearer Tests

Testing

Smaller, Clearer Tests

Generating test values can better express intent of input values. The examples are written using Typescript, but the same technique can be used elsewhere.

By jroddev 20 Apr 2022
Cmake, Conan, and GTest Example

Quick Tricks

Cmake, Conan, and GTest Example

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

By jroddev 07 Feb 2022
Concepts in Concept Member Functions

C++20

Concepts in Concept Member Functions

In this article I show a way to use Concepts in the member function parameters of other Concepts using function_traits.

By jroddev 29 Dec 2021
Dependency Injection with C++20 Concepts and the Service Provider Pattern

C++

Dependency Injection with C++20 Concepts and the Service Provider Pattern

In this article I explore a system of using C++20 Concepts for Dependency Injection

By jroddev 19 Aug 2021
Jthread, Stop Tokens, and Latches

C++

Jthread, Stop Tokens, and Latches

In this article I use jthread, stop tokens and latches to coordinate a worker pool

By jroddev 18 Aug 2021
How to create a broken UTF-8 CSV

Quick Tricks

How to create a broken UTF-8 CSV

Create a broken utf8 CSV for use in your unit tests

By jroddev 12 Aug 2021
List GitHub Repositories with Search Term

Quick Tricks

List GitHub Repositories with Search Term

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.

By jroddev 12 Jul 2021
AWS Lambdas with Terraform

Terraform

AWS Lambdas with Terraform

This project was used to quickly create some server-less functions with AWS Lambda and make them accessible via HTTP requests.

By jroddev 07 Jun 2021
Rotating Password Generation Command

Quick Tricks

Rotating Password Generation Command

Use Linux Watch to continually generate passwords for you

By jroddev 25 May 2021
Batch convert video files with grep, xargs, sed and ffmpeg

Quick Tricks

Batch convert video files with grep, xargs, sed and ffmpeg

Explore a combination of tools including pipe, grep, find, xargs, and sed to do some video conversion

By jroddev 05 May 2021
Docker is using all my inodes

Linux

Docker is using all my inodes

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

By jroddev 04 Mar 2021
See all
jroddev
Powered by Ghost