• Drew Belloc@programming.dev
    link
    fedilink
    arrow-up
    23
    ·
    1 year ago

    Amateur! I use coments so it looks like this:

    function main(){ /tab/if(fish==2){ /tab//tab/console.log(“i need help”); /tab/} }

    • chaorace@lemmy.sdf.org
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      For real. OP needs to give up on this ridiculous notion of tabbed whitespace and learn to use real, monospaced indentation. How wide is a tab? OP couldn’t tell you because tabs are inherently dishonest – a lie concocted by big keyboard to poison the unwashed programmer masses.

  • ZILtoid1991@kbin.social
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    1 year ago
    int mostCursedIndentation (const int someVal) @safe {
    {}{}if (someVal < 0) {
    {}{}{}{}throw new Exception ("Value cannot be negative!");
    {}{}}
    {}{}return someVal * 5 - 3;
    }
    
    
  • jxk@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I know why it’s there, but it still annoys me that there’s a semicolon on the last line

  • thkruz@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    …this…this can’t be real…no one is that much of a sadist are they?

    This whole thread is what nightmares are made of.

    • deaf_fish@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      So at my work we’ve implemented a automatic code formatter. Instead of having discussions about the process of changing the configuration file we just put it up on GitHub. I think I might have found a fun April fool’s prank.

  • RiikkaTheIcePrincess@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Oh, that’s weird. Kinda not that bad- … wait, where are the semi…co…lon…s… What? OH NO!! What the fuck! Hahahah, that’s awful. There’s some real bad stuff in this thread, but that first one is deceptively awful. Whew.

    Really missing Haskell now :P