When you’ve written the same code 3 times, write a function
When you’ve given the same in-person advice 3 times, write a blog post
— David Robinson (@drob) November 9, 2017 Fun fact: This tweet is actually what inspired me to start this website.
Secondly, he’s right, and we should definitely all be writing functions for bits and pieces of code that we are using over and over again.