• 👍Maximum Derek👍
    link
    fedilink
    English
    4310 months ago

    Nope, Haskell was just a bad dream I had. It was just a dream, not real, that’s not real. I’m OK.

    • Zewu
      link
      1510 months ago

      Haskell is nice. This code style… not so much

    • Match!!
      link
      fedilink
      English
      510 months ago

      A distant voice:

      Learn you a Haskell for great good

  • @9point6
    link
    26
    edit-2
    10 months ago

    OP is clearly a python user incapable of understanding punctuation

    Embrace the brace, you won’t be alone with a semi-colon(…e)

  • @Wilzax
    link
    2210 months ago

    Kernighan & Ritchie. This is the hill I choose to die on.

    • @zoly
      link
      610 months ago

      The only correct answer

  • @wreckedcarzz
    link
    English
    1710 months ago

    Allman or gnu, rest are fucking bonkers

  • @kryptonianCodeMonkey
    link
    14
    edit-2
    10 months ago

    Reject the code block. Embrace the modularity. If you were going to write a code block, write a function instead.

    • zea
      link
      fedilink
      1310 months ago

      If you must avoid code blocks, that means you can only use one line. I don’t think you can be Turing complete if each function can only call one function. I don’t even think you can get a context-free grammar, Chomsky normal form at least allows a variable to expand into two variables.

      • @[email protected]
        link
        fedilink
        610 months ago

        Please never bring up CNF again. I’m a year out of college, two years out of finite automata, and I still shudder when it’s brought up.

  • insomniac_lemon
    link
    fedilink
    4
    edit-2
    10 months ago

    I might have a personality disorder, but yeah seeing most code/languages (stuff more substantial than the image here) makes me think there’s something really wrong with them or me (or both) because I don’t see how you get into that. Though I know in many cases it probably could’ve been written differently.

    I like 1 language*, but it uses whitespace. I mean that’s not the defining factor, but there aren’t really different styles like this (though there is spaces for indentation depth, and I usually went with 1 space instead of the standard 2 so there is that).

    *=it’s somewhat niche and I never really started with it because… userspace reasons I guess is the best way to put it