10 ms·
Coffeescript is an amazing tool that has allowed me to be 10x as efficient writing js code. ECMA 6 fixes a bunch of things that coffeescript makes really easy,
by skilesare 12y ago
Coffeescript is an amazing tool that has allowed me to be 10x as efficient writing js code. ECMA 6 fixes a bunch of things that coffeescript makes really easy, but until the transpilers work as well as coffeescript, coffeescript still has a place. (From what I understand they are getting close and may have arrived)
- raverbashing 12y agoAnd what's the lost efficiency for hitting into incompatibilities between JS<>Coffescript, like the topic? JS seems small enough that you shouldn't have many problems in this matter, but there's usually some warts
- conanbatt 12y agoThere is a cost, but its without a doubt heavily outbalanced by having half the code. The JS it generates is a tad ugly, but you save way more time, clarity and readability than with vanilla JS.
- skilesare 12y agoThis is the first issue like this that I've seen. I actually didn't know about that particular syntax. I've been doing @example inside my code when I need 'this'. Coffeescript is just coffeescript so there really aren't any incompatibilities. The only gotcha that I've hit a few times was the automatic returns that are inserted. Sometimes you have a chain of functions that requires a true to be returned from a function and if you don't do it explicitly, coffeescript will return a falsy value.
- coldtea 12y ago>Coffeescript is an amazing tool that has allowed me to be 10x as efficient writing js code. I seriously doubt the 10x number, as it's just some syntactic sugar, and not that advanced at that, and comes with its own issues. Actually, I (and Fred Brooks, in "No Silver Bullet") don't think there's any technology that added to some programming language will make you 10x more productive. Maybe having an editor compared to writing to punch cards.