• SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 day 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
      1
      ·
      57 minutes ago

      translates to assembly code with a very predictable pattern.

      the portable assembly meme

      🤣🤣🤣🤣🤣🤣🤣

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      8 hours 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!