lzon.ca

Codex

Page 1 of 2

Tutorials, guides, explainers.

For your technology or just life in general.

How C++20 improved the for-loop syntax

Here’s a small piece of syntactic sugar from C++20.

Sat Jul. 11, 2026
2 min read

A value_lock type for C++

Here’s yet another idea I had for a C++ type. It’s a useful tool for simplifying the use of a mutex with a shared resource.

Thu Jun. 25, 2026
4 min read

A maybe type for C++

Here’s an idea I had for a useful C++ class that adds a little syntactic sugar to null pointer checking.

Thu Jun. 18, 2026
3 min read

A result type for C++

I wrote my own version of the very useful ‘result type’ pattern for C++.

Mon Jun. 01, 2026
3 min read

A hack for Zola SSG feed templates

Here’s an interesting little hack I discovered for the Zola static site generator.

Wed May. 13, 2026
3 min read

How to make a single instance program in C++

I just discovered a neat trick for enforcing a single instance of a C++ program.

Sat May. 02, 2026
3 min read

Pleasant Passwords

A method for making passwords that you won’t hate to use.

Tue Apr. 28, 2026
6 min read

Page 1 Page 2
11 Posts
Settings

Theme

Primary
Secondary
Tertiary