Permalink
Browse files

Small additions based on what I saw in the forks

  • Loading branch information...
1 parent 5cb39d0 commit 436e8c1bbeb6ffde8bcfbcf72af449c5f8a741f3 @chneukirchen committed Apr 9, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 RUBY-STYLE
View
@@ -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:
@@ -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.

0 comments on commit 436e8c1

Please sign in to comment.