Skip to content

Commit 3cbf768

Browse files
author
geekplux
committed
Translate the Introduction to Chinese
1 parent df589ca commit 3cbf768

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# CoffeeScript Style Guide
1+
# CoffeeScript 编码风格指南
22

3-
This guide presents a collection of best-practices and coding conventions for the [CoffeeScript][coffeescript] programming language.
3+
这份指南阐述了一些 [CoffeeScript][coffeescript] 的最佳实践和编码惯例。
44

5-
This guide is intended to be community-driven, and contributions are highly encouraged.
5+
这份指南是社群驱动的,非常鼓励大家来贡献内容。
66

7-
Please note that this is a work-in-progress: there is much more that can be specified, and some of the guidelines that have been specified may not be deemed to be idiomatic by the community (in which case, these offending guidelines will be modified or removed, as appropriate).
7+
请注意这还是一份正在完善的指南:还有很多地方可以改进,有些已制定的准则不一定是社区惯用的(基于此,在适当的情况下,这些有待斟酌的准则将有可能被修改或删除。)
88

9-
## Inspiration
9+
## 灵感
1010

11-
The details in this guide have been very heavily inspired by several existing style guides and other resources. In particular:
11+
本指南中的很多细节受到了几份现有的风格指南和其他资源的启发。特别是:
1212

1313
- [PEP-8][pep8]: Style Guide for Python Code
1414
- Bozhidar Batsov's [Ruby Style Guide][ruby-style-guide]
@@ -18,30 +18,30 @@ The details in this guide have been very heavily inspired by several existing st
1818
- Jeremy Ashkenas' [code review][spine-js-code-review] of [Spine][spine-js]
1919
- The [CoffeeScript FAQ][coffeescript-faq]
2020

21-
## Table of Contents
22-
23-
* [The CoffeeScript Style Guide](#guide)
24-
* [Code Layout](#code_layout)
25-
* [Tabs or Spaces?](#tabs_or_spaces)
26-
* [Maximum Line Length](#maximum_line_length)
27-
* [Blank Lines](#blank_lines)
28-
* [Trailing Whitespace](#trailing_whitespace)
29-
* [Optional Commas](#optional_commas)
30-
* [Encoding](#encoding)
31-
* [Module Imports](#module_imports)
32-
* [Whitespace in Expressions and Statements](#whitespace)
33-
* [Comments](#comments)
34-
* [Block Comments](#block_comments)
35-
* [Inline Comments](#inline_comments)
36-
* [Naming Conventions](#naming_conventions)
37-
* [Functions](#functions)
38-
* [Strings](#strings)
39-
* [Conditionals](#conditionals)
40-
* [Looping and Comprehensions](#looping_and_comprehensions)
41-
* [Extending Native Objects](#extending_native_objects)
42-
* [Exceptions](#exceptions)
43-
* [Annotations](#annotations)
44-
* [Miscellaneous](#miscellaneous)
21+
## 目录
22+
23+
* [CoffeeScript 风格指南](#guide)
24+
* [代码布局(Code Layout](#code_layout)
25+
* [Tab 还是 空格?(Tabs or Spaces?](#tabs_or_spaces)
26+
* [最大行宽(Maximum Line Length](#maximum_line_length)
27+
* [空行(Blank Lines](#blank_lines)
28+
* [结尾空白(Trailing Whitespace](#trailing_whitespace)
29+
* [可选的逗号(Optional Commas](#optional_commas)
30+
* [编码(Encoding](#encoding)
31+
* [模块导入(Module Imports](#module_imports)
32+
* [表达式和语句中的空白(Whitespace in Expressions and Statements](#whitespace)
33+
* [注释(Comments](#comments)
34+
* [块注释(Block Comments](#block_comments)
35+
* [行内注释(Inline Comments](#inline_comments)
36+
* [命名规范(Naming Conventions](#naming_conventions)
37+
* [函数(Functions](#functions)
38+
* [字符串(Strings](#strings)
39+
* [条件判断(Conditionals](#conditionals)
40+
* [循环和列表解析(Looping and Comprehensions](#looping_and_comprehensions)
41+
* [扩展本地对象(Extending Native Objects](#extending_native_objects)
42+
* [异常(Exceptions](#exceptions)
43+
* [注解(Annotations](#annotations)
44+
* [其他(Miscellaneous](#miscellaneous)
4545

4646
<a name="code_layout"/>
4747
## Code layout

0 commit comments

Comments
 (0)