From e8f76c72820fc2c1a4c3858cea2b6dbaaf90358e Mon Sep 17 00:00:00 2001 From: Sean Pedersen <37712604+SeanPedersen@users.noreply.github.com> Date: Wed, 9 Dec 2020 20:50:15 +0100 Subject: [PATCH] Add magical numbers section --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 9cbaa27..25b43fe 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,18 @@ _Bad 👎🏻_ let age = 42; ``` +### 💩 Use magical numbers without context + +```javascript +let timeOut = 42; +``` + +_Bad 👎🏻_ + +```javascript +let timeOutSeconds = 42; +``` + ### 💩 Mix variable/functions naming style Celebrate the difference.