-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
俊朗朗朗朗 ... 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. | ||
註解能用可人為且易閱讀的方式去述敘該程式碼中複雜的運算,幫助瞭解程式碼之間的運作關係,下註解是值德鼓勵去實行的美德。 |
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.
可以這樣改看看
我們鼓勵註解用易於閱讀和敘事的風格撰寫,尤其是在解釋一個複雜流程的時候。一般來說註解應該置於要被解釋的程式碼附近,而非在一整個程式區塊前面。
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.
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 之間的常見用法又有一些差別。) |
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.
和,
應該是用 而且
話說 |
|
||
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. | ||
註解是不能代替詳細的文檔區塊。它是用來說明代碼本身的羅輯結構,而不是去使用程式碼。 |
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.
文檔區塊區塊註解
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.
它是用來說明代碼本身的羅輯結構邏輯與結構
大概先修到這邊吧...其他應該沒什麼大問題 |
@michael520 幫我修改可以嗎 |
oh ~ yes |
已在 PR #19 另外修正了。 |
步驟有錯,關掉 PR #19 |
@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. | ||
註解是不能代替詳細的區塊註解。它是用來說明代碼本身的羅輯與結構,而不是去使用程式碼。 |
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.
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.
ok
👍 |
這是從去年 @michael520 的翻譯版本修正過來的(一堆 Google 翻譯.....)(還有一堆「俊朗」)
麻煩 @LeoOnTheEarth @bblurock 幫忙 review
看
manual/zh-TW/coding-standards/chapters/inline-comments.md
這個檔案即可,_old
內的之後要移除