• FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      C is firmly in the “not fun” camp with PHP, JavaScript and Bash. I’d say even assembly is more fun, in a puzzle challenge sort of way.

      The most fun language I’ve used is QuakeC, because the only thing you can do with it is write Quake mods. It was a pretty neat language too from what I remember. It even automatically detected infinite loops!

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 days ago

        We all have different definitions of “fun.” C won’t surprise you when you try to add a string and an array; it’ll do exactly what you told it to do, which then translates to assembly code with a very predictable pattern.

        On a different note, bash scripting is well-defined and mostly consists of understanding that common tools can be chained together to provide useful output; combined with the very well-defined string operations, I’ve found that bash scripts can address over 99% of cases people try to throw sed and awk at. It’s almost surprisingly powerful.

        JavaScript is just a hot fucking mess.

        • BB_C@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          19 hours ago

          translates to assembly code with a very predictable pattern.

          the portable assembly meme

          🤣🤣🤣🤣🤣🤣🤣

        • FizzyOrange@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          C won’t surprise you…

          Lol… I’m sure there’s a meme or graph for where you are in learning C to believe this.

          then translates to assembly code with a very predictable pattern.

          Even this is a stretch. Modern C compilers can do some wild transformations. I assume you’ve seen the classic one where UB makes it jump to a function that you never actually call.

          bash scripting is well-defined

          Yeah I mean Bash’s problem isn’t that it’s poorly defined - it’s that the definition is awful!