Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small additions based on what I saw in the forks

  • Loading branch information...
commit 436e8c1bbeb6ffde8bcfbcf72af449c5f8a741f3 1 parent 5cb39d0
@chneukirchen authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 RUBY-STYLE
View
5 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.
Please sign in to comment.
Something went wrong with that request. Please try again.