Let me put it in an aphorism I once read on twitter:
If you’ve given the same advice twice, write a blog post.
If you’ve written the same code twice, write a definition.