3 ms·
Promises are better than callbacks but far worse (in terms of complexity they create) that synchronous code. This might be fairy dust but it crushes promises
by eagsalazar2 11y ago
Promises are better than callbacks but far worse (in terms of complexity they create) that synchronous code. This might be fairy dust but it crushes promises for reducing developer cognitive load. Having said that I agree with the person who commented that async/await is a better way to go (although sadly not really an option in CS yet).
- monsieurbanana 11y agoSorry could you explain what CS is? I can't think of anything besides computer science.
- seeekr 11y agoCoffeeScript! :-) One of those neat compiles-to-JS languages! Edit: And the "problem" with async/await and CoffeeScript is that the former is currently available in various JS transpilers but you can't use one of those and CoffeeScript at the same time.
- modarts 11y agoWhy would someone invest in Coffeescript at this point with ES6 + Babel being a highly viable option?