Skip to content

Add Inline comment #18

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

Merged
merged 3 commits into from
Oct 27, 2014
Merged

Add Inline comment #18

merged 3 commits into from
Oct 27, 2014

Conversation

asika32764
Copy link

這是從去年 @michael520 的翻譯版本修正過來的(一堆 Google 翻譯.....)(還有一堆「俊朗」)

麻煩 @LeoOnTheEarth @bblurock 幫忙 review

manual/zh-TW/coding-standards/chapters/inline-comments.md 這個檔案即可,_old 內的之後要移除

@michael520
Copy link

俊朗朗朗朗 ... lol


Comments that are written in a readable and narrative style, especially when explaining a complex process, are encouraged. In general they should be placed close to the code explained rather than before the entire block of code.
註解能用可人為且易閱讀的方式去述敘該程式碼中複雜的運算,幫助瞭解程式碼之間的運作關係,下註解是值德鼓勵去實行的美德。

Choose a reason for hiding this comment

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

可以這樣改看看

我們鼓勵註解用易於閱讀和敘事的風格撰寫,尤其是在解釋一個複雜流程的時候。一般來說註解應該置於要被解釋的程式碼附近,而非在一整個程式區塊前面。

Copy link
Author

Choose a reason for hiding this comment

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

Done


en-GB most commonly uses `ise` where en-US would use `ize`, such as `normalise` instead of `normalize`. (Note that there are some exceptions to this rule and some differences between en-GB and en-AU in common usage.)
EN-GB最常使用 `ise` ,而 en-US 較常使用 `ize` ,比如應使用 `normalise` 而不是 `normalize`。 (請注意,有一些例外情況和,且 en-GB en-AU 之間的常見用法又有一些差別。)

Choose a reason for hiding this comment

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

和, 應該是用 而且

@LeoOnTheEarth
Copy link

話說 manual/zh-TW/_old/comments.md 的原文要看哪一個啊?


Comments are not a replacement for detailed doc blocks. Comments serve to explain the logic and structure of code itself rather than the use of code.
註解是不能代替詳細的文檔區塊。它是用來說明代碼本身的羅輯結構,而不是去使用程式碼。

Choose a reason for hiding this comment

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

文檔區塊區塊註解

Choose a reason for hiding this comment

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

它是用來說明代碼本身的羅輯結構邏輯與結構

@LeoOnTheEarth
Copy link

大概先修到這邊吧...其他應該沒什麼大問題

@asika32764
Copy link
Author

@michael520 幫我修改可以嗎

@michael520
Copy link

oh ~ yes

@michael520
Copy link

已在 PR #19 另外修正了。

@michael520
Copy link

步驟有錯,關掉 PR #19

@asika32764
Copy link
Author

@LeoOnTheEarth 看沒問題就 merge 吧


Comments are not a replacement for detailed doc blocks. Comments serve to explain the logic and structure of code itself rather than the use of code.
註解是不能代替詳細的區塊註解。它是用來說明代碼本身的羅輯與結構,而不是去使用程式碼。

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

ok

@LeoOnTheEarth
Copy link

👍

LeoOnTheEarth added a commit that referenced this pull request Oct 27, 2014
@LeoOnTheEarth LeoOnTheEarth merged commit 85f2d57 into gh-pages Oct 27, 2014
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.

3 participants