155

Nesting hell

Comments
  • 19
  • 14
    Why is he always checking for the same condition? O.o
  • 1
    This is blasphemy, this is madness
  • 12
    Employee refactors the code, or the PM refactors the employee!
  • 5
    What in the flying fuckstix 😲😲😲
  • 6
    Is this jacascript? yes it is. is it insane? yes it is. should the dev be shot? yes he should.
  • 2
    Thanks. Now I'm going to have nightmares.
  • 1
    Delete this shit at once! Who the hell wrote this code 😓
  • 3
    Kill it with fire :(
  • 2
    Nope! Nope, nope, nope! So much fucking nope!
  • 0
    oh my callback hell, my eyes are burning. could've been done with a state machine or promises.
  • 4
    We review at lot of external code at work. The current nesting record is... 42. (not kidding)
  • 0
    Isn't it just generated code?
  • 2
    @sam9669

    THIS IS JAVASCRIPT!!!
    *kick*
  • 0
    I stopped reading when the left column was wider than 3 digits.
  • 2
    I need to puke 😝
  • 2
  • 0
    Ultimate job security!
  • 1
    Oh, this reminds me when I made an excel document into a function, it was some advanced calculations and formulas. And a lot of if-else statements in Excel. Problem is that it's like this; if ("statement") {} else {if ("statement") {} else {....}
    Had to write a horrid long if-else statement. So happy when I saw the logic in it and got it down to ~10 LOC
  • 2
    Oh, please no. No more. Stop. Someone hold me.

    And it's even worse because it's on a white background with black text.

    Now I'm tempted to fix this, but I'm also tempted to go into a corner hug myself and cry.

    This guy should really take a programing class or get himself a mentor or something. It's clearly going bad over there since he managed to lure himself into that company.

    BTW, tell us when your hiring won't ya?
  • 1
    It also gives me the creeps to realize that file is over 4k lines. So much refactoring to do.
  • 0
    When you nest more than 3 indentation admit that you are screwed. - Linus Torvalds.
  • 1
    At the circus:

    And now, ladies and gentlemen, this man will debug it!!!

    *crowd goes wild*
  • 0
    I bet about $20,000 that this code is not DRY
  • 1
    Why not use promise 😱
  • 0
    *nesting heaven
Add Comment