Suhair Zain
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
README.md
|
@ -363,7 +363,7 @@ _Bad 👎🏻_ |
|
|
$ ls -la |
|
|
$ ls -la |
|
|
|
|
|
|
|
|
package.json |
|
|
package.json |
|
|
package-lock.json |
|
|
package-lock.json // or yarn.lock |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
### 💩 Always name your boolean value a `flag` |
|
|
### 💩 Always name your boolean value a `flag` |
|
@ -385,7 +385,7 @@ let isEmpty = false; |
|
|
|
|
|
|
|
|
### 💩 Long-read functions are better than short ones. |
|
|
### 💩 Long-read functions are better than short ones. |
|
|
|
|
|
|
|
|
Don't divide a program logic into readable pieces. What if your IDE's search brakes and you will not be able to find the necessary file or function? |
|
|
Don't divide a program logic into readable pieces. What if your IDE's search breaks and you will not be able to find the necessary file or function? |
|
|
|
|
|
|
|
|
- 10000 lines of code in one file is OK. |
|
|
- 10000 lines of code in one file is OK. |
|
|
- 1000 lines of a function body is OK. |
|
|
- 1000 lines of a function body is OK. |
|
|