you are viewing a single comment's thread
view the rest of the comments
[–] 21 points 1 year ago* (4 children)

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.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 8 points 1 year ago (2 children)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago (1 child)

    On the other hand, interpolated strings are fucking awesome and you need them every 5 seconds for UI work

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    Sure, but in Perl and other languages there is a difference between "$foo" and '$foo'. In that the first expands the value of foo, while the other doesn't.

    But usually if you need to write stuff in noisy strings, just use printf/sprintf. Or a <<HERE block.

  • source
  • parent
  • [–] 8 points 1 year ago* (last edited 1 year 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.

  • source
  • parent