Skip to content

Instantly share code, notes, and snippets.

@seaofclouds
Forked from rtomayko/Optimizing For Patches.rb
Created January 30, 2009 01:45
Show Gist options
  • Save seaofclouds/54883 to your computer and use it in GitHub Desktop.
Save seaofclouds/54883 to your computer and use it in GitHub Desktop.
# BAD:
foo.bar = 25
foo.biz = 'Hello World'
foo.bazzle = 42
# GOOD:
foo.bar = 25
foo.biz = 'Hello World'
foo.bazzle = 42
# BAD:
Foo.something :bar, :baz => 'bling',
:bizzle => 'boink',
:bowang => '...'
# GOOD:
Foo.something :bar,
:baz => 'bling',
:bizzle => 'boink',
:bowang => '...'
# What's the underlying principle at work here?
foo.answer = 'be concise'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment