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

[FLINK-13678] Translate "Code Style - Preamble" page into Chinese #245

Open
wants to merge 1 commit into
base: asf-site
Choose a base branch
from
Open

[FLINK-13678] Translate "Code Style - Preamble" page into Chinese #245

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Aug 13, 2019

Copy link
Member

@klion26 klion26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ghost thanks for the contribution, I left some comments.


Another set of properties is whether the code follows an intuitive design and architecture, whether it is well structured with right separation of concerns, and whether the code is easily understandable and makes its assumptions explicit. That set of properties requires solving the _software engineering problem_ well. A good solution implies that the code is easily testable, maintainable also by other people than the original authors (because it is harder to accidentally break), and efficient to evolve.
另一组指标是代码的设计和架构是否直观、结构是否良好、关注点是否正确、代码是否易于理解以及假设是否明确。这需要很好地解决软件工程问题。好的解决方案意味着代码容易测试,可以由原作者之外的其他人维护(代码不容易被意外破坏),并且可持续优化。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

关注点是否正确 这个感觉有点奇怪


While the first set of properties has rather objective approval criteria, the second set of properties is much harder to assess, but is of high importance for an open source project like Apache Flink. To make the code base inviting to many contributors, to make contributions easy to understand for developers that did not write the original code, and to make the code robust in the face of many contributions, well engineered code is crucial.[^1] For well engineered code, it is easier to keep it correct and fast over time.
第一组指标具有比较客观的评价标准,第二组指标较难于评估,然而对于 Apache Flink 这样的开源项目,第二组指标更加重要。为了能够邀请更多的贡献者,为了使非原始开发人员容易上手参与贡献,为了使大量贡献者协作开发的代码保持健壮,对代码进行精心地设计至关重要。[^1] 随着时间的推移,精心设计的代码更容易保持正确和高效。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“为了能够邀请更多的贡献者,为了使非原始开发人员容易上手参与贡献,为了使大量贡献者协作开发的代码保持健壮” 这里是不是可以改成 “为了能够吸引更多的贡献者,非原始开发人员容易上手参与贡献,在大量贡献者协作开发的代码保持健壮” 或者类似的描述


A big part of high-quality open source contributions is about helping the reviewer to understand the contribution and double-check the implications, so an important part of this guide is about how to structure a pull request for review.
高质量开源贡献的很大一部分是帮助审阅者理解贡献的内容进而对内容进行细致地检查,因此本指南的一个重要部分是如何构建便于代码审查的拉取请求。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“pull request” 翻译成 “拉取” 感觉怪怪的,这个地方有其他更好的翻译吗?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得可以不用翻译,这应该算是github专门的词

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

恩,我觉得不翻译也是一种选择,这更像一个专有名词

@klion26
Copy link
Member

klion26 commented Apr 30, 2020

Seems the original author's account has been deleted. maybe someone else can take over this?

@klion26
Copy link
Member

klion26 commented May 11, 2020

comment on the jira side and ping the assignee, let us see if the original author still working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants