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
-
kamen69826y@gathurian Basically yes, but at least you can chain them instead of nesting them like you have to do with bare callbacks.
-
devios157706yI work on a codebase where the original dev apparently didn’t feel there were *enough* callbacks and decided to write his own (very shitty) async process engine that takes normal tasks and splits them up into smaller tasks and splits them all up with setTimeout.
The problem is he apparently doesn’t know anything about async coding and the thing is rife with race conditions and performance issues.
A good chunk of my work on this code has been to just undo this insanity. The more code I remove, the better it runs.
Related Rants
Callback Hell!
joke/meme
nodejs
callback
js