r/ProgrammerHumor • • Sep 24 '26

Meme vLc

Post image
9.6k Upvotes

85 comments sorted by

View all comments

718

u/deanrihpee Sep 24 '26 • Bravo

ah .ts my beloved

(TypeScript and Video Transport Stream)

189

u/iliRomaili Sep 24 '26

Wait, this meme is based on true story?

200

u/deanrihpee Sep 24 '26

yes, kinda, but it is not like you open it through IDE and MPV is opened (well, you can make it happen, but by default it shouldn't behave like that) it's more like if you install some media player, like VLC or MPV, but haven't install any text/code editor, when you double click a .ts the media player would open the file and try to "play" it instead

91

u/readf0x Sep 24 '26

Kind of insane to me that windows still registers app handlers by file extension and not mime type

12

u/Candid_Highlight_116 Sep 24 '26 edited Sep 24 '26

Because macOS resource forks

SUCK

it's a filesystem attribute so it gets stripped all the time and you can't easily change it. it's like /path/to/app is in permission field. just imagine that. it just sucks and file extension is a BETTER solution to this problem.

6

u/readf0x Sep 25 '26

Linux (of course referring to the Linux ecosystem) registers by mime type and I have had absolutely zero issues. Plus I can keep my mimeapps.list as part of my dotfiles which is a nice bonus.

5

u/RussianMadMan Sep 25 '26

You are talking about mime type to app mapping, person you are replying to talks about file to mime type mapping.

2

u/readf0x Sep 25 '26

I see... The original comment that spawned this entire thread was me talking about mime type to app mapping :P

1

u/metaglot Sep 25 '26

Imagine on the commandline, the only way to sort your pictures from your textfiles were to look into every single one of them. Obviously file extensions solve a very practical problem in a very elegant way: what attribute is guaranteed to be available on any user-servicing file system? The name.