seaofclouds (owner)

Fork Of

Revisions

gist: 54883 Download_button fork
public
Public Clone URL: git://gist.github.com/54883.git
Embed All Files: show embed
Optimizing For Patches.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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'