230

Words cannot describe this...

Comments
  • 22
    um what

    How do these people even put on their shoes in the morning?
  • 29
    So circle it is, I guess.
  • 10
    @d4ng3r0u5 That's what 2 years of useless CS classes does to a person.
  • 2
    for fucks sake really!!!!
  • 5
    @Letmecode from what I understand the 10 was a PHP variable which was forgotten after switching to static HTML and somehow landed on a production site. More laziness than incompetence.
  • 6
    Atleast he didn't add the condition (10 == 3) in another if.
  • 1
    The worst part is bubbleShape instead of bubble.shape
  • 17
    int borderRadius = GetBorderRadius();

    if(borderRadius < 3)
    {
    bubbleShape = 'square';
    }
    else
    {
    bubbleShape = 'circle';
    }

    [Later during a debugging session]

    Dev: "I'm just gonna go ahead hard code this for a second. 10 < 3, ah yes that'll do the trick. I'll be sure to put that back later before I commit."

    I refuse to believe this happened any other way. 😂
  • -1
    @franga2000 the fact it was originally PHP only compounds the WTF
  • 1
    Please tell me this was from a CS101 class in attempt to explain how if statements work in that when the condition is false, the second block is executed rather than the first. This serves no other imaginable purpose. 😂
  • 9
    Come on guys, there is logic behind this statements. Who knows what the future holds. The guy was simply future proofing his code. Who knows tomorrow 10 is actually less than 3?
  • 3
    Wtf, black foreground on white background?!?
  • 1
    @Gauthier Firefox's view source. Was too busy laughing to bother with esthetics :D
  • 0
    @franga2000 Man... It was a joke -_-
  • 0
    @Gauthier I know. I had the same thought when I took the pic but I just had to post it asap
  • 0
    Oh yeah, great code....

    Saw similar somewhere else a long time a go, it didn't make it into production...
  • 2
    MAYBE alcohol can explain this... Lotsa alcohol.
  • 3
    I'm more worried by the light IDE theme ;)
  • 6
    One day it will draw a square, and we know the end times have come.
  • 2
    @franga2000 That's my point, you didn't have to change it! Otherwise I and @rallport couldn't have made the joke.
  • 2
    I wonder if there is some base system where 10 is greater than 3...
  • 4
    When you see these kinds of things, you gotta ask yourself "is it him or me, who is stupid?". Now, you are all judging this code, but little do you realize, that this is just a test for whether the compiler reads "10" as an int of "ten" or a binary of "two"

    Joke is on you! 😉

    /sarcasm
  • 2
    what
  • 2
    the
  • 2
    actual
  • 2
    fuck
  • 0
    Why is that a thing?
  • 0
    Fine! 10 > 3...

    Then try this in JS --> Open your console and...
    >> arr = [3, 10];
    >> arr.sort();
    // outputs [10, 3]

    Now, this is the real WTF!!! LoL :)
  • 0
    duhh, floor is made out of floor!
Add Comment