From 436e8c1bbeb6ffde8bcfbcf72af449c5f8a741f3 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 9 Apr 2010 21:57:52 +0200 Subject: Small additions based on what I saw in the forks --- RUBY-STYLE | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- cgit 1.4.1