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

Added chinese version #63

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
0ef5a37
en translate into cn for thing 1.
wy471x Jan 5, 2024
caf5adf
translation is finished for thing 2.
wy471x Jan 5, 2024
f600956
translation is finished for thing 2.
wy471x Jan 5, 2024
e94be74
translation is finished for thing 3.
wy471x Jan 5, 2024
9947699
translation is finished for thing 4.
wy471x Jan 6, 2024
881bee9
translation is finished for thing 5.
wy471x Jan 6, 2024
b253f11
translation is finished for thing 5.
wy471x Jan 6, 2024
a39d640
translation is finished for thing 6.
wy471x Jan 6, 2024
a4e45bf
fix md format issue for thing 6.
wy471x Jan 6, 2024
6d3bd37
thing 7 is finished.
wy471x Jan 6, 2024
e6c3ebc
thing 8 is finished.
wy471x Jan 6, 2024
0f5f4d8
thing 9 is finished.
wy471x Jan 6, 2024
59619c3
thing 10 is finished.
wy471x Jan 6, 2024
b0b5a7a
add summary & readme doc.
wy471x Jan 6, 2024
d2a832a
thing 11 is finished.
wy471x Jan 7, 2024
f76a253
added thing 12.
wy471x Jan 7, 2024
a5fc4c8
update summary.
wy471x Jan 7, 2024
d4545c7
added thing 13.
wy471x Jan 7, 2024
5e1ed7e
update summary for thing 13.
wy471x Jan 7, 2024
eade5a7
added thing 14 & updated summary.
wy471x Jan 7, 2024
dda5f1d
added thing 15 and summary.
wy471x Jan 7, 2024
6045a6d
added thing 16 and update summary.
wy471x Jan 7, 2024
937ef3f
added thing 17 and summary.
wy471x Jan 7, 2024
4318bda
added thing 18 and summary.
wy471x Jan 7, 2024
9a78a14
added thing 19.
wy471x Jan 7, 2024
9e84292
added thing 20 and summary.
wy471x Jan 7, 2024
4b277fe
added thing 21.
wy471x Jan 7, 2024
ffa105c
added thing 22 and update summary.
wy471x Jan 7, 2024
58e8f06
added thing 23 and update summary.
wy471x Jan 8, 2024
2054810
added thing 24 and update summary.
wy471x Jan 8, 2024
4ca334d
added thing 25 and update summary.
wy471x Jan 8, 2024
4e5c8a2
added thing 26 and update summary.
wy471x Jan 8, 2024
42d1612
update summary.
wy471x Jan 8, 2024
9d444f8
added thing 27 and update summary.
wy471x Jan 9, 2024
bad10ed
added thing 28 and update summary.
wy471x Jan 9, 2024
b48c982
added thing 29.
wy471x Jan 10, 2024
2ff5cfe
added thing 30 and update summary.
wy471x Jan 10, 2024
ab0247f
added thing 31.
wy471x Jan 10, 2024
5a896e4
added thing 32 and update summary.
wy471x Jan 10, 2024
7a429e4
update langs.
wy471x Jan 10, 2024
a8adfe6
added thing 33 and update summary.
wy471x Jan 11, 2024
532b43f
added thing 34 and update summary.
wy471x Jan 11, 2024
0e7f728
added thing 35 and update summary.
wy471x Jan 12, 2024
a753826
added thing 36 and update summary.
wy471x Jan 13, 2024
dad725b
added thing 37 and update summary.
wy471x Jan 13, 2024
9866a2e
added thing 38 and update summary.
wy471x Jan 13, 2024
6ad58e8
added thing 39 and update summary.
wy471x Jan 14, 2024
d3eab2f
added thing 40 and update summary.
wy471x Jan 14, 2024
fbab4d1
added thing 41 and update summary.
wy471x Jan 14, 2024
59a5a13
added thing 42 and update summary.
wy471x Jan 14, 2024
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
Prev Previous commit
Next Next commit
translation is finished for thing 5.
wy471x committed Jan 6, 2024
commit 881bee962046d6e314dd40e837243b23fe377c40
27 changes: 27 additions & 0 deletions cn/thing_05/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 简约中蕴含美感

有一句名言我认为对所有软件开发人员来说都很重要,值得铭记在心:

> *风格的美丽、和谐、优雅和良好的节奏取决于简约。* ——柏拉图
我认为这句话简洁地概括了我们作为软件开发人员应该追求的价值观。

在我们的代码中,我们追求以下几个方面:

- 可读性
- 可维护性
- 开发速度
- 难以捉摸的美感

柏拉图告诉我们,所有这些品质的实现因素都是简约。

什么是美丽的代码?这可能是一个非常主观的问题。对美感的感知在很大程度上取决于个人背景,就像我们对任何事物的感知一样。艺术教育背景的人对软件的美感有着不同的感知(或至少不同的接近方式),而科学教育背景的人倾向于谈论对称性和黄金比例,试图将事物归结为公式。根据我的经验,简约是双方争论中大部分观点的基础。

想想你研究过的源代码。如果你没有花时间研究别人的代码,请立即停止阅读这篇文章,找一些开源代码来学习。真的!我是认真的!去搜索一下你所选择的编程语言中一些著名的、公认的专家编写的代码。

你回来了吗?很好。我们刚才在哪儿?啊对了...我发现,与我产生共鸣、我认为美丽的代码具有一些共同的特点。其中最重要的是简约。我发现,无论整个应用程序或系统有多复杂,个别部分都必须保持简单。简单的对象具有单一职责,包含类似简单、专注的方法,具有描述性的名称。有些人认为每个方法只有五到十行代码的概念过于极端,而且有些编程语言很难做到这一点,但我认为这种简洁仍然是一个值得追求的目标。

最重要的是,美丽的代码是简约的代码。每个个体部分都保持简单,具有简单的职责和与系统其他部分的简单关系。这是我们保持系统随着时间推移的可维护性的方式,通过简洁、简单、可测试的代码,保持整个系统的开发速度。
美感源于简约。

由Jørn Ølmheim撰写