Skip to content

Commit

Permalink
Small additions based on what I saw in the forks
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Apr 9, 2010
1 parent 5cb39d0 commit 436e8c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RUBY-STYLE
Expand Up @@ -118,7 +118,8 @@ when you contribute to my code, please follow these rules:

* When defining binary operators, name the argument "other".

* Prefer map over collect, find over detect, find_all over select.
* Prefer map over collect, find over detect, find_all over select,
size over length.


== Comments:
Expand Down Expand Up @@ -157,6 +158,8 @@ when you contribute to my code, please follow these rules:

* Code in a functional way, avoid mutation when it makes sense.

* Do not mutate arguments unless that is the purpose of the method.

* Do not mess around in core classes when writing libraries.

* Do not program defensively.
Expand Down

0 comments on commit 436e8c1

Please sign in to comment.