Browse Source

Add magical numbers section

pull/22/head
Sean Pedersen 4 years ago
committed by GitHub
parent
commit
e8f76c7282
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      README.md

12
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.

Loading…
Cancel
Save