Falling in love with coffee all over again.
The title is actually a double entendre because Starbucks helped me to fall in love with the real stuff. And the simplicity behind CoffeeScript helped me to fall in love with node.js.
Just taking into account that with CoffeeScript you don't need all the excessive brackets, semi-colons and etcetera that goes along with most languages that are this fast. Had me falling in love at first glance.
CoffeeScript(9 characters):
a=b=c="a"
JavaScript(31 characters):
var a,b,c;
a="a";
b="a";
c="a";
or (21 characters[without spaces])
var a="a",
b="a",
c="a";
Functions:
a = (a,b,c) -> a+b+c
vs
function a (a,b,c){
return a+b+c;
}
the simplicity and compactness is what makes this language amazing.
Written by Gabe De
Related protips
2 Responses
what about readability? :)
over 1 year ago
·
I <3 Coffeescript :)
Just as a reminder, JS lets you do assignments like
var a, b, c;
a = b = c = "a";
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Coffeescript
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#