summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--RUBY-STYLE5
1 files changed, 4 insertions, 1 deletions
diff --git a/RUBY-STYLE b/RUBY-STYLE
index 5773609..eb10450 100644
--- a/RUBY-STYLE
+++ b/RUBY-STYLE
@@ -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.