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
-
- Callback what?
My editor highlight the function scope,
Why you complaining?
- said the creator of that majestic file -
Looks like there's an Ajax call in there. I would love to see the rest of that clown car
-
yusijs12508yI'm contemplating rewriting several of the libs I'm using to promises. I mean ffs, why has node not made promises the de facto standard by now? Callbacks are so ugly -_-
-
Sykoah7138yNote down inputs, outputs, and comments. print it off twice, delete the function. keep one print for reference, the other to burn in front of whoever wrote it. Then rewrite the function and spend the next month tearing off tiny bits of the print and tucking them in their sandwich.
-
metaory15098yFYI
this is express controller
we do use async.js
it's even used in this file, not rightfully though,
sigh.. -
zfor14678yThe callback hell is one thing, but where are all the semicolons?
I know it's not needed, but I still kind of like them :-) -
Djeisen1538yThis is definitely nodejs, guys. No doubt about it. Way to solve callback hell is with promises. Promises are the bomb. Bluebird promises specifically. Love .all, .map, .mapSeries, and .spread. Best decision I ever made with nodejs.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo36My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
my eyes hurts so much
undefined
fml