Skip to content

Instantly share code, notes, and snippets.

@lancelakey
Created March 23, 2013 00:28
Show Gist options
  • Save lancelakey/5225768 to your computer and use it in GitHub Desktop.
Save lancelakey/5225768 to your computer and use it in GitHub Desktop.
Ruby Vs. CoffeeScript: Battle #1
Ruby Total: 17
~ > pry
[4] pry(main)> def add(a,b)
[4] pry(main)* a+b
[4] pry(main)* end
=> nil
[5] pry(main)> add(1,1)
=> 2
CoffeeScript Total: 14
~ > coffee
------> add = (a,b) ->
......> a + b
[Function]
coffee> add(1,1)
2
@banister
Copy link

what does the 'total' refer to? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment