this post was submitted on 24 Aug 2025
281 points (97.6% liked)

Programmer Humor

37996 readers
69 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] beyond@linkage.ds8.zone 21 points 3 days ago* (last edited 3 days ago) (2 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.

[–] HelloRoot@lemy.lol 8 points 3 days ago* (last edited 3 days 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 8 points 3 days ago (1 children)

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

[–] Feathercrown@lemmy.world 1 points 3 days ago (1 children)

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

[–] Tanoh@lemmy.world 2 points 2 days 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.