Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bolasblack/code-guide
https://github.com/bolasblack/code-guide
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bolasblack/code-guide
- Owner: bolasblack
- Created: 2013-07-30T11:48:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-25T14:57:47.000Z (over 10 years ago)
- Last Synced: 2024-11-10T03:36:32.530Z (2 months ago)
- Size: 164 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ALL LANGUAGE
* 优雅胜于丑陋
* 扁平胜于嵌套
* DRY
* KISS
* 使用空格缩进
* 制表符在很多输出环境(如终端)中是无法定义宽度的,会导致在不同的渲染环境下渲染出来的文本缩进不同* 在文件末尾添加一个空行
* [为什么 C 语言源程序最后一行要是一个空行? - 知乎](http://www.zhihu.com/question/20018991)
* [文本每行都应该换行——vi文件末尾自动换行,不会导致php输出空行 - sink_cup - 博客园](http://www.cnblogs.com/sink_cup/archive/2012/08/17/vi_php_eol_tab_space.html)
* [Re: no newline at end of file](http://gcc.gnu.org/ml/gcc/2001-07/msg01120.html)
* [history - Why should files end with a newline? - Stack Overflow](http://stackoverflow.com/questions/729692/why-should-files-end-with-a-newline)* 行末不允许有多余的空格
* [Ruby China | I hate the trailing whitespaces!!](http://ruby-china.org/topics/9331)
* [coding style - Why is trailing whitespace a big deal? - Programmers Stack Exchange](http://programmers.stackexchange.com/questions/121555/why-is-trailing-whitespace-a-big-deal)
* [Rails Best Practices | remove trailing whitespace](http://ruby-china.org/topics/9331)* 文件名和目录名使用下划线 `_` 分隔单词