228
metaory
8y

my eyes hurts so much

Comments
  • 40
    trying to reach god
  • 10
    - Callback what?

    My editor highlight the function scope,
    Why you complaining?

    - said the creator of that majestic file
  • 7
    Imagine one liner like this...
  • 8
    Typical case of Callback Hell. 😂😂
  • 8
    Looks like there's an Ajax call in there. I would love to see the rest of that clown car
  • 2
    http://caolan.github.io/async/ this saved my sanity...give it a try
  • 1
    I recommend ECMAScript 6's generators!
  • 6
    json version of stairway to heaven?
  • 5
    My OCD kicked in hard and I want to add so many semicolons.
  • 0
  • 2
    Promises promises
  • 1
    Callback hell go for Promisessss
  • 1
    Highway to hell
  • 0
    I'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 -_-
  • 1
    Javascript and the piramidal coding
  • 0
    I wanna refactor and make it pure
  • 0
    yep callback hell
  • 3
    Note 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.
  • 0
    Observables anybody....?
  • 3
    IT BURNS!!! IT BURNS US!!!
  • 0
    And that's JS for you. They might find the async library useful.
  • 0
    FYI
    this is express controller
    we do use async.js
    it's even used in this file, not rightfully though,
    sigh..
  • 4
    The callback hell is one thing, but where are all the semicolons?

    I know it's not needed, but I still kind of like them :-)
  • 1
    Oh no 😒😒
  • 2
    WTF?! Its crazy
  • 1
    This 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.
  • 0
    wtf? What was done here? nested ajax requests? oO xD
  • 1
    i think something is wrong
    no
    i think somethings are wrong
    ...
Add Comment