Browse Source
Update README.zh-CN.md
添加规则:"使用你的母语作为变量名/函数名"
pull/54/head
slwyts
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
17 additions and
0 deletions
-
README.zh-CN.md
|
@ -55,6 +55,23 @@ _Bad 👎🏻_ |
|
|
let windowWidth = 640; |
|
|
let windowWidth = 640; |
|
|
let windowHeight = 480; |
|
|
let windowHeight = 480; |
|
|
``` |
|
|
``` |
|
|
|
|
|
### 💩 使用你的母语作为变量名/函数名 |
|
|
|
|
|
方便自己阅读 |
|
|
|
|
|
|
|
|
|
|
|
_Good 👍🏻_ |
|
|
|
|
|
|
|
|
|
|
|
```javascript |
|
|
|
|
|
let 窗口宽度 = 1280; |
|
|
|
|
|
let 窗口高度 = 720; |
|
|
|
|
|
let ширинаокна = 1280; |
|
|
|
|
|
let высотаWindow = 720; |
|
|
|
|
|
``` |
|
|
|
|
|
_Bad 👎🏻_ |
|
|
|
|
|
|
|
|
|
|
|
```javascript |
|
|
|
|
|
let windowWidth = 1280; |
|
|
|
|
|
let windowHeight = 720; |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
### 💩 不要写注释 |
|
|
### 💩 不要写注释 |
|
|
|
|
|
|
|
|