Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve chinese translation #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ _Read this in other languages:_

### 💩 以一种代码已经被混淆的方式命名变量

如果我们键入的东西越少,那么就有越多的时间去思考代码逻辑等问题
我们键入的东西越少,就有越多的时间去思考代码逻辑等问题

_Good 👍🏻_

Expand Down Expand Up @@ -68,7 +68,7 @@ const cdr = 700;

_Bad 👎🏻_

更多时候,评论应该包含一些“为什么”,而不是一些“是什么”。如果“什么”在代码中不清楚,那么代码可能太混乱了。
更多时候,评论应该包含一些“为什么”,而不是一些“是什么”。如果“是什么”在代码中不清楚,那么代码可能太混乱了。

```javascript
// 700ms的数量是根据UX A/B测试结果进行经验计算的。
Expand Down Expand Up @@ -163,7 +163,7 @@ try {

### 💩 广泛使用全局变量

全球化的原则
全局化的原则

_Good 👍🏻_

Expand Down Expand Up @@ -271,7 +271,7 @@ function square(num) {

### 💩 三角法则

就像鸟巢,鸟巢,鸟巢
叠、叠、乐

_Good 👍🏻_

Expand Down Expand Up @@ -346,7 +346,7 @@ fruits.forEach(fruit => {
})
```

### 💩 不要锁住你的依赖项
### 💩 不要锁定你的依赖项

以非受控方式更新每个新安装的依赖项。为什么坚持使用过去的版本,让我们使用最先进的库版本。

Expand Down Expand Up @@ -385,7 +385,7 @@ package-lock.json

### 💩 构建新项目不需要 README 文档

一开始我们就应该保持
以后也不需要

### 💩 保存不必要的代码

Expand Down