Skip to content
DevMeme
3881 of 7590
Languages Post #4227 · source on Telegram

FizzBuzz, Now With Defensive Semicolons

Description

The image is a dark code editor screenshot showing a JavaScript function named `logFizzBuzz()` that implements the classic FizzBuzz loop from 1 to 100. The code includes `for (var i = 1; i < 101; i++)`, checks `i % 15 == 0`, `i % 3 == 0`, and `i % 5 == 0`, and prints "FizzBuzz", "Fizz", "Buzz", or the number. The joke is that nearly every line is prefixed with long runs of semicolons, turning harmless empty statements into visual noise around otherwise straightforward code. It pokes at JavaScript semicolon habits, code style anxiety, and how technically valid syntax can still be deeply hostile to readability.

Comments

9
Anonymous ★ Top Pick Automatic semicolon insertion saw this file and decided to take the rest of the sprint off.
  1. Anonymous ★ Top Pick

    Automatic semicolon insertion saw this file and decided to take the rest of the sprint off.

  2. @ZgGPuo8dZef58K6hxxGVj3Z2 4y

    Best

  3. @kandiesky 4y

    What the actual fuck Why

  4. @QutePoet 4y

    Please tell me about this algorithm, I can't get it.

    1. @Vo_6V 4y

      It's fizz buzz beer game, classic interview task

    2. @beton_kruglosu_totchno 4y

      the semicolons or fizbuz?

  5. @codycode 4y

    You use 4 semicolons per indentation level?? What is wrong with you REAL developers use 2 semicolons per level

    1. @dsmagikswsa 4y

      I am fake dev then. I am using 4 space for indentation.

      1. @prirai 4y

        OGs use 8 Got the reference?

Use J and K for navigation