forked from zh-google-styleguide/zh-google-styleguide
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5546a7
commit b999977
Showing
12 changed files
with
365 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
10. 結束語 | ||
10. 結語 | ||
~~~~~~~~~~~~~~~~ | ||
|
||
.. tip:: | ||
|
||
運用常識和判斷力, 並 *保持一致*. | ||
|
||
編輯代碼時, 花點時間看看項目中的其它代碼, 並熟悉其風格. 如果其它代碼中 ``if`` 語句使用空格, 那麼你也要使用. 如果其中的註釋用星號 (*) 圍成一個盒子狀, 你同樣要這麼做. | ||
編輯程式碼時, 花點時間看看專案中的其它代碼, 並熟悉其風格. 如果其它代碼中 ``if`` 語句使用空格, 那麼你也要使用. 如果其中的註解用星號 (*) 圍成一個盒子狀, 你同樣要這麼做. | ||
|
||
風格指南的重點在於提供一個通用的編程規範, 這樣大家可以把精力集中在實現內容而不是表現形式上. 我們展示了全局的風格規範, 但局部風格也很重要, 如果你在一個文件中新加的代碼和原有代碼風格相去甚遠, 這就破壞了文件本身的整體美觀, 也影響閱讀, 所以要盡量避免. | ||
風格指南的重點在於提供一個通用的編程規範, 這樣大家可以把精力集中在實現內容而不是表現形式上. 我們展示了全局的風格規範, 但局部風格也很重要, 如果你在一個文件中新加的程式碼和原有代碼風格相去甚遠, 這就破壞了文件本身的整體美觀, 也影響閱讀, 所以要盡量避免. | ||
|
||
好了, 關於編碼風格寫的夠多了; 代碼本身才更有趣. 盡情享受吧! | ||
好了, 關於編碼風格寫的夠多了; 程式碼本身才更有趣. 盡情享受吧! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.