3 ms·
What exactly does coffeescript buy you besides the sugar? How does it prevent bugs?
by choward 10y ago
What exactly does coffeescript buy you besides the sugar? How does it prevent bugs?
- uranian 10y agoIt buys you a proper modern language that even the creator of Javascript praises. It prevents bugs because it's a better language than Javascript in many ways. Just write a few projects in it and you'll see for yourself. Functions in Coffeescript: -> => Functions in Javascript: var myFunc = function(){}; function myFunc(){} var myFunc = () => {}; in objects: myFunc: function(){} in classes: myFunc(){} Inconsistency in code is a recipe for bugs.