docs(daily-email): add 2022-12-22

This commit is contained in:
Oliver Davies 2022-12-24 20:47:27 +00:00
parent 17cb64b90c
commit fa6c172bfb

View file

@ -0,0 +1,17 @@
---
title: >
The Boy Scout rule
pubDate: 2022-12-22
permalink: >
archive/2022/12/22/the-boy-scout-rule
---
The Boy Scout rule is "Always leave the campground cleaner than you found it".
From a programming perspective, "Always leave the code better than you find it".
If you're working on some code and see some commented-out lines or unused variables, once you've finished with your changes, remove them too.
If there's a variable that could have a more descriptive name, change it.
If there are any other refactors you can do, do them and leave the code better than before and easier for the next Developer (whether it's you or someone else) to work with.