15

Give me an even worse one y'all can think of.

Comments
  • 8
    {
    if (some_value_is_true)
    {
    // .. 170 lines of code
    return some_value;
    }

    return null;
    }

    It's worse because it's so god damn common.
  • 4
    I'm looking at this line right now and spot this rant.

    @highlight, do your stuff.
  • 7
  • 0
    [BITS 32]
    mov eax, 'P'
    cmp eax, 0
    je c
    out 0x64, 0xFE
    c:
    jmp $
  • 1
    If(condition !== false){
    //code
    }

    Sometimes I wish I could physically attach a post-it in front of my colleagues stating: “please be patient, sometimes I am dumb” instead of seeing this stuff and having a stroke
  • 1
    @C0D4 how do you tell the bot to do its magic without posting the code?

    And btw, I like you code the most.
    And with ‘like’, I mean I want to bang my head against the wall after seeing it.
  • 2
    @Lensflare I go back in time and remove the code from which the bot posted, and tell the bot to do what it's going to do in the future without telling it to do it at the time I told it to do it in the present.

    🤭 bow ties are cool.

    In short: edit is a special power.
  • 1
    @C0D4 clever 😄
  • 2
    i once caught a huge if statement that could be really short if the dev had used one of de morgan rules...
    that was one of the times i valued the heck out of formal education
  • 1
    To this day I don't understand why the if statement needs to be parenthesized. It's just visual noise in a lot of cases.
  • 1
    @lbfalvy
  • 1
    @lbfalvy don't tell my manager this. He may fight you on that
Add Comment