• Captain Beyond@linkage.ds8.zone
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    6 hours ago

    Aaah so a backtick is for strings? WRONG!!! IT EXECUTES THE FUCKING COMMAND!!!

    To be fair this is what they do in Perl and shell scripts (and in PHP too), so it’s not unexpected behavior in that world.

    • HelloRoot@lemy.lol
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      4 hours ago

      I’m way happier debugging “200 char wide class name + 50 line of boilerplate” code written in java that verbosely and expressively does the same thing compared to deciphering single symbol hieroglyphs in shell esque scripts where I have to pay attention which way the ticks are pointing.

    • Tanoh@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      6 hours ago

      Yeah, you could very well argue that JS and others that use it for weird interpolated strings are the weird ones here.