TIL an obscure git flag: --intent-to-add. Adds an empty file at a given path, so you can see new files as diffs:
miniblog.
Related Posts
On writing code to communicate an idea or intent:
Rust has a lot of integer types, but I kinda like distinguishing u64 from usize. It communicates intent.
A usize is probably going to be used as an index, whereas a u64 is probably just a measurement of something.
Avoiding the Maybe/option type to make intent clearer: