f**k you && and ||

This commit is contained in:
Jeff Atwood 2013-04-26 13:09:40 -07:00
parent 6063f81946
commit a1c879668d
1 changed files with 0 additions and 1 deletions

View File

@ -59,7 +59,6 @@ Anyone wishing to contribute to the **[Discourse/Discourse](https://github.com/d
* use spaces around operators, after commas, colons, semicolons, around `{` and before `}`
* no space after `(`, `[` or before `]`, `)`
* use Ruby 1.9 hash syntax: prefer `{ a: 1 }` over `{ :a => 1 }`
* use `&&` and `||` over `and`/`or`
* prefer `class << self; def method; end` over `def class.method` for class methods
* prefer `{ ... }` over `do ... end` for single-line blocks, avoid using `{ ... }` for multi-line blocks
* avoid `return` when not required