-
Notifications
You must be signed in to change notification settings - Fork 5k
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
函数式编程:抽象与组合 #4748
函数式编程:抽象与组合 #4748
Conversation
formating finished
checked and finished.
commit translation article
这篇文章有很多点在我翻译的时候很疑惑,所以大部分文章我都是根据我认为的意思进行翻译的,我比较期盼这些点有懂的人能有更好的译法。
合并branch
翻译完成
翻译完成啦 ~ @leviding |
@Xekin-FE 赞! |
@leviding 校对认领 |
@weibinzhu 好的呢 🍺 |
@leviding 校对认领 |
@Moonliujk 妥妥哒 🍻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
翻译的还不错,一些格式问题以及翻译中出现的错误望译者注意一下
@Xekin-FE @leviding 校对完毕 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
非常感谢 @Moonliujk 的辛苦校对,校对得非常棒!已经根据校对修改完毕并有小部分小意见已经提出!
TODO1/abstraction-composition.md
Outdated
|
||
Instead, we remove duplication by writing a component of some kind (a function, module, class, etc…), giving it a name (identity), and reusing it as many times as we like. | ||
相反,我们通过编写一些对应的组件(像是函数、模块、类等等),再给个名称(标识),然后我们就可以在任意我们想要使用它的时候去重复使用它。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Moonliujk 这里 remove duplication 不是说要避免ID重复吧,根据上下文来看,这里是说我们要规避上面说的这种重复实现功能的做法~
TODO1/abstraction-composition.md
Outdated
|
||
* **Generalization** is the process of finding _similarities_ (the obvious) in repeated patterns, and hiding the similarities behind an abstraction. | ||
* **Specialization** is the process of using the abstraction, supplying _only what is different_ (the meaningful) for each use case. | ||
* **泛化**是在重复模式中找到那些类似的(显而易见的)并通过抽象来将它们隐藏的一个过程。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Moonliujk 是否相似性也不太妥,怪我没说清楚,其实这里应该是类似的(某种东西),我改成相似的功能逻辑怎么样?
第一个问题:我的本意就是 避免相似的功能,这里我没表示清楚 |
@weibinzhu 来校对啦 |
@Xekin-FE @leviding 校对完毕 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
根据 @weibinzhu 校对完毕,有问题及时沟通~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
回复 @weibinzhu
TODO1/abstraction-composition.md
Outdated
* **Identity** — The ability to assign a name to it and reuse it in different contexts. | ||
* **Composition** — The ability to compose simple functions to form more complex functions. | ||
* **标识性** — 为其分配名称并在不同的上下文当中重复使用。 | ||
* **可组合性** — 可以让简单的功能组合成更复杂的功能。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
『可以让简单的功能组合成更复杂的功能。=>『可以将简单的函数组合成更复杂的函数。』
功能和函数都可以说得通吧?
很赞,看得出校对者和译者都很认真,找出并且探讨了很多细节问题 👍 感谢大家 |
感谢两位大佬辛苦校对!译文已经根据对应的校对意见校对完毕。 @leviding |
@Xekin-FE 好的,明天上午八点半到九点之间我最后看一遍,然后 merge 明天上午就可以发布了。 |
@Xekin-FE 已经 merge 啦~ 快快麻溜发布到掘金然后给我发下链接,方便及时添加积分哟。 掘金翻译计划有自己的知乎专栏,你也可以投稿哈,推荐使用一个好用的插件。 |
译文翻译完成,resolve #4728