From fa6c172bfb9031e88c23c4413c7061e1ff1f3e00 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 24 Dec 2022 20:47:27 +0000 Subject: [PATCH] docs(daily-email): add 2022-12-22 --- website/src/daily-emails/2022-12-22.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 website/src/daily-emails/2022-12-22.md diff --git a/website/src/daily-emails/2022-12-22.md b/website/src/daily-emails/2022-12-22.md new file mode 100644 index 00000000..2cfe1771 --- /dev/null +++ b/website/src/daily-emails/2022-12-22.md @@ -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.