Fun paper quantifying the effect of not following a project's style: you're less like to get your pull request accepted, and you may see more comments! https://vhellendoorn.github.io/PDF/msr2015.pdf
Jensen's Device is this fun (though slightly bananas) programming technique for call-by-name programming languages. Note how we're iterating over V[i] in this example!
https://en.m.wikipedia.org/wiki/Jensen%27s_Device
When I first learnt VCS, I focused on history. It was only later I realised that it's wonderful for temporary notes too.
I write a lot of `// here` and `// here?` comments now, as I can easily discard them once I've committed the interesting bit.