Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Wombat105828y
-
Wombat105828y@floatright If I understand the promises right I don't have to use them if I fine with simple callbacks, is that right?
-
Wait till your projects gets big, you'll spend half the time in understanding the source of callback function of callback function of callback function of.......
Hint - use promises ;) -
@Divisionbyzero Well, not really. Promises are a different use case. In fact promises themselves can accept callbacks. Anyway, if you are using jquery for network requests, you're already using callbacks in promises ;)
-
@vzqzac I had never heard of it before. Thanks for bringing it to my notice! Will keep a lookout for this feature
-
XMLHttpRequests aren't promised by default. It's just event based. Libraries exist to wrap then and use promises though.
-
vzqzac7598y@floatright here you go dude :) new approaches on ECMA are really cool
https://developer.mozilla.org/en-US... -
vzqzac7598y@Divisionbyzero yes, this does actually come with ES.. 7 I guess? So it will take its time to be available everywhere, but node LTS supports it now and as a developer more focused in back end I'm really excited :D
-
Oh. I somehow missed the part where you were talking about jQuery based queries.
Related Rants
Understood Javascript callbacks today.
... uhh that feels good.
undefined
javascript
callback
asynchronous
frontend