this post was submitted on 26 Oct 2026
830 points (95.7% liked)

Programmer Humor

33990 readers
1205 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
[–] Jiral@lemmy.world 30 points 1 week ago (5 children)

What is the accelerating rise of m-dashes from approximately 2014-2019 about? That trend apparently continued until very recently, even slowed down a bit, before exploding at some point in 2025 or 2026 for obvious reasons.

Does anyone have a theory?

[–] arty@feddit.org 25 points 1 week ago (1 children)

People slowly learned to use their keyboards for proper typography?

[–] Jiral@lemmy.world 10 points 1 week ago

That was a good one.

[–] communism@lemmy.ml 18 points 1 week ago (1 children)

If the graph is not just using made up data, then it also measures absolute em-dashes, not em-dash density, so possibly could be an increase in interest in contributing to the kernel?

[–] Jiral@lemmy.world 6 points 1 week ago* (last edited 1 week ago) (1 children)

By a factor of roughly 10-fold? Maybe. It could indeed be a measure of overal absolute contribution. But post 2025 that could be influenced by m-dash density especially.

[–] communism@lemmy.ml 6 points 1 week ago (1 children)

No, the comment I responded to was about the ~2014 uptick, not the recent one.

The recent one is obviously AI one way or another. Absolute contribution rate is higher due to AI as well.

[–] Jiral@lemmy.world 5 points 1 week ago

Yeah sure, no I am not surprised about post 2025. My question was indeed about the post 2014 uptick.

[–] m532@lemmy.ml 13 points 1 week ago (1 children)

I assume it's due to phone keyboards.

[–] SkaveRat@discuss.tchncs.de 25 points 1 week ago (1 children)

I don't think a lot of kernel devs are programming on their phone

[–] programmerlexi@sh.itjust.works 14 points 1 week ago

That's why the number was low before.

[–] apparia@discuss.tchncs.de 9 points 1 week ago (1 children)

The OP graph is just absolute count on the y axis, so I also assumed it was basically measuring LoC, but looking at this chart, the em-dashes do appear to be definitely more of a modern phenomenon compared to raw LoC:

Maybe some policy/tooling change around 2014? A guess is perhaps something to do with allowing UTF-8 in source files, but that's a pretty long shot.

[–] Jiral@lemmy.world 4 points 1 week ago

Looking at that, the lines of code cannot really be the full story. M-dash count really just appears to rise from 2014 onwards.

[–] korazail@eviltoast.org 5 points 1 week ago (2 children)

I wonder how many em dashes are real vs interpreted.

I love an em-dash, but I have never typed one on purpose; they are all just two minus in a row and I use them wrong -- with a space around (*inspect source to see that lemmy translates for me). I abuse them like I abuse semicolons. They are a typographical tick that indicates a pause or pivot when I translate my thoughts to text.

I can imagine a human manuscript editor turning punctuation like a comma into an em-dash when it makes sense, but I can't imagine a developer ever specifically typing out one -- with the need to either know or look up the unicode for it. The only relevant place would be a comment, but even then IDE's are not generally known for their tendency to replace typed characters with something else.

Maybe some tool in the pretty-print/code-formatter ecosystem added that as a feature? But var-- is so common that I can't imagine that'd be a good idea, even in a comment.

[–] laurelraven@lemmy.zip 4 points 1 week ago (2 children)

They probably write code in Microsoft Word

[–] ChickenLadyLovesLife@lemmy.world 3 points 1 week ago (1 children)

I used to write websites in Notepad. It was kind of like digital Amishness.

[–] laurelraven@lemmy.zip 2 points 1 week ago

At least notepad won't fuck with your formatting for you

[–] SecondaryAnnetagonist@lemmy.blahaj.zone 2 points 1 week ago (1 children)

Absolutely insane ide choice. Wonder if visual studio tries to add those too.

[–] laurelraven@lemmy.zip 1 points 1 week ago

It, thankfully, does not

[–] apparia@discuss.tchncs.de 3 points 1 week ago (1 children)

For pedantry's sake:

Two dashes -- -- -- in Markdown is usually rendered as an en-dash -- more common in British-adjacent styles and usually surrounded by spaces.

Three dashes---------in Markdown is rendered as an em-dash---more commonly associated with American styles and usually (though not always) without spaces.

[–] korazail@eviltoast.org 2 points 1 week ago (1 children)

Hah. Neat!

For pedantry...

My understanding was that en-dash was a range, and em-dash was a change in topic or a parenthetical, so I've been using the wrong one but for the right reason. This may be an American style distinction, though. Time to jump into a new rabbit hole.

[–] apparia@discuss.tchncs.de 2 points 1 week ago

I've always just used a hyphen for ranges, without having any idea whether that makes me a philistine. A quick search says that, like most of this, it varies depending on who you ask.

Good luck in your rabbit hole!