Skip to content

Instantly share code, notes, and snippets.

@cyx
Created April 6, 2010 10:21
Show Gist options
  • Save cyx/357442 to your computer and use it in GitHub Desktop.
Save cyx/357442 to your computer and use it in GitHub Desktop.
* 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