Wednesday, 1 April 2015

[Programming] coding styles

Programs must be written for people to read, and only incidentally for machines to execute.
- H. Abelson and G. Sussman (in "The Structure and Interpretation of Computer Programs)


1. Python
Pep8 : https://www.python.org/dev/peps/pep-0008/

2. C
Style cho C code để viết CPython: https://www.python.org/dev/peps/pep-0007/
Linux style: https://www.kernel.org/doc/Documentation/CodingStyle

3. Ruby 
https://github.com/styleguide/ruby
Có bản tiếng Việt: https://github.com/scrum2b/ruby-style-guide/blob/master/README-viVN.md

4. Javascript
https://github.com/styleguide/javascript

5. Golang
https://github.com/golang/go/wiki/CodeReviewComments

6. Bash
http://wiki.bash-hackers.org/scripting/style