Created
April 6, 2010 10:21
-
-
Save cyx/357442 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* The length of an identifier determines its scope. Use one-letter | |
variables for short block/method parameters, according to this | |
scheme: | |
a,b,c: any object | |
d: directory names | |
e: elements of an Enumerable | |
ex: rescued exceptions | |
f: files and file names | |
i,j: indexes | |
k: the key part of a hash entry | |
m: methods | |
o: any object | |
r: return values of short methods | |
s: strings | |
v: any value | |
v: the value part of a hash entry | |
x,y,z: numbers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment