On writing code to communicate an idea or intent:
miniblog.
Related Posts
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:
Upscaling textures on SNES emulators to improve graphics on today's displays: https://arstechnica.com/gaming/2019/04/hd-emulation-mod-makes-mode-7-snes-games-look-like-new/
Really neat approach. I've seen emulators do clever 2D smoothing, but this feels closer to 'original intent'.
