this post was submitted on 26 Oct 2026
811 points (95.6% liked)

Programmer Humor

33844 readers
1680 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ChickenLadyLovesLife@lemmy.world 22 points 1 day ago (2 children)

I never even heard of an em dash until I started reading about AI. I was just using hyphens everywhere I was apparently supposed to be using em dashes. I am a stickler for grammar and correct punctuation (except for punctuation inside quotes which my internal programmer won't allow me to do the American way) so I've started using em dashes -- and now people think I'm an AI.

[–] absentbird@lemmy.world 11 points 1 day ago* (last edited 1 day ago) (1 children)

That's no —, it's two hyphens playing pretend!

[–] AnyOldName3@lemmy.world 2 points 1 day ago (1 children)

Some Markdown renderers interpret two dashes as an en dash and three as an em dash, so on some Lemmy clients, that might show up as a real en dash.

[–] ChogChog@lemmy.world 2 points 1 day ago

inb4 AI resurrects the tab v. spaces debates but between how many dashes equals an em dash.

[–] Warl0k3@lemmy.world 6 points 1 day ago (1 children)

Wait, what's the rule for punctuation inside quotes? I don't think I've ever noticed a regional difference.

[–] ChickenLadyLovesLife@lemmy.world 10 points 1 day ago* (last edited 1 day ago) (1 children)

In the US, the punctuation is supposed to be inside of the quotes, even if that punctuation wasn't actually part of what's being quoted. So if somebody says "your mother sews socks that smell," the quoted partial bit would be typed as "your mother sews socks." In Britain it would be "your mother sews socks". The difference might not be really obvious visually; it's whether that period (which is required to end the sentence) is before the end quote or after it. Apparently programmers in the US (like I used to be) have gravitated towards the British style because with string variables (which are generally delimited by quotes) you can't be farting around with adding phantom punctuation inside the quotes, even if it is grammatically correct here.

[–] TwentySeven@lemmy.world 10 points 1 day ago (1 children)

I'm I'm not mistaken, the reasoning for this goes back to the printing press era. The comma or period would be on the same type block as the quotation mark; dealing with individual blocks for , or " was too fragile or fiddly. So they had blocks for ," and ." that were used regardless of sentence structure

[–] silasmariner@programming.dev 4 points 1 day ago

Oh. That's pretty neat. My favourite bit of typesetting lore :- this combination is known as the dog's bollocks in some circles.