]> git.cworth.org Git - sup/blob - HACKING
added coding style guidelines
[sup] / HACKING
1 Running Sup locally
2 -------------------
3 Invoke it like this:
4
5 ruby -I lib -w bin/sup
6
7 Coding standards
8 ----------------
9
10 - Wrap code at 99999 characters. The days of 80-column displays are
11   long over. Wrap comments and other text at whatever Emacs meta-Q
12   does.
13 - Use as few parentheses as possible.
14 - Use {} for one-liner blocks and do/end for multi-line blocks.
15 - For one-line functions, put a semicolon before "end", like this:
16     def bool_writer *args; attr_writer(*args); end
17   (I just started doing this for no real reason, and now I kinda like
18   it.)
19