188

What a genius way to print numbers.

Comments
  • 34
    This has rustled my jimmies. I'm physically Angy. Well done sir, well done.
  • 24
    At least do a case switch...
    Or maybe just print i? :'D
  • 34
    There's a million way to code something. Some of them are good, some aren't.

    This is not good tho
    Srsly
    Slap the cunt who made this
  • 3
    dafaq...
  • 17
    I didn't knew eye cancer was a thing until I had it while watching this rant
  • 3
    I am asking for a "Friend" how van you it better.
    My friend would really like these help.
  • 2
    Is that true? Honestly it's hard to belive...
  • 36
    Code before:

    for (i=1; i <= 10; i++) {
    if (i == 0)
    printf("0\n);
    if (i == 1)
    printf("1\n);
    if (i == 2)
    printf("2\n);
    // ...
    }

    Someone: Did you know that you can put a %d and the i variable will be inserted in the string?

    Him: Really?? COOL!

    Him:
    for (i=1; i<= 10; i++) {
    if (i == 0)
    printf("%d\n, i);
    if (i == 1)
    printf("%d\n, i);
    if (i == 2)
    printf("%d\n, i);
    // ...
    }

    I'm pretty sure he missed the point.
  • 2
    Mmm why does devrant delete my space indentations?
  • 8
    Sometimes There is a coder Who is worse than you.
  • 0
    I don't know what the fuck I'm doing but at the very least it works! YAY FOR MEEEE
  • 2
    @Alfer all the plus pluses to you sir for the use of the word cunt. Haha. 👌🏼
  • 4
    It is programmers lite this that causes plain mouse drivers to be 50 Mbytes...
  • 5
    @stormwise example -> move mouse.
    moveRight():
    if cursor.x == 0:
    cursor.x = 1
    # and so on until the maximum of screen width (imagine if it 8k lcd)
  • 1
    @CSaratakij or you could just do:

    cursor.x += 1
  • 4
    @umnikos that's the joke
  • 2
    He really should have used brackets to his if conditions 😂
  • 2
    I want to hit the one who did this with a car
  • 1
    The best FizzBuzz solution naturally follows the same logic
  • 1
    I just said WTF several times in my head...
  • 1
    Should've used jQuery
  • 0
    That code doesn't work with 0's :(
  • 0
    Because we love tabs. 😁@Joserc87
  • 1
    I love that artificial intelligence technique. I hope some day I will master it
  • 1
    I think I could probably do a worse job
    If I wanted
    But I don't 😅
  • 0
    The horror
  • 0
    I'm gone blind. :/
  • 0
    @demiko thank you! :)
  • 2
    Highfive to the guy who wrote this, on his face, with a steel chair.
  • 1
  • 0
    Seriously use a switch already 😎
Add Comment