this post was submitted on 13 Sep 2023
684 points (97.8% liked)
Programmer Humor
32443 readers
1031 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There are 3 types of files. Renamed txt, renamed zip, and exe
I'd argue with this, but it seems like image and video file extensions have become a lawless zone with no rules so I don't even think they count.
Looking at you, .webp
Video files are just a bunch of zip files in a trenchcoat.
Back in the day, when bandwidth was precious and porn sites would parcel a video into 10 second extracts, one per page, you could zip a bunch of these mpeg files together into an uncompressed zip, then rename it .mpeg and read it in VLC as a single video. Amazing stuff.
What's it called when you logically expect something to work, but are totally surprised that it actually does?
Sounds an awful lot like a normal day at work as a dev.
Don't forget renamed tar.
It's a folder that you put files into, but acts as a file itself. Not at all like zip.
Tar.gz is pretty much like zip. Technically tar mimics a file system more closely but like who makes use of that?
Isn't the Windows exe also a renamed zip?
No. But the Windows office suite is
You can rename a docx and extract it.
Don't know how it is with ppt/x and xls/x
xls & co. (the older ones) are something custom. Only after standardization as OOXML (a shitshow btw, there's a lengthy wiki article about it) they got zip.
The whole Word and Libre/OO-Writer world is a shit show.
So complex and everyone decides to interpret it a bit differently.
Not even Libre and OO can be interoperabel between the same file and feature.
docx are mostly markup language, actually. Much like SVGs and PDFs.
Arent they straight up HTML being specially formatted?
XML
And HTML is a lot like it, all of them are Markup Language.
No. The Office ???x files are archives. Inside them you can find folders with resources. Among those, you can find files written in markup languages.
Not quite the same thing.
Just rename your .docx file as .zip to check its contents.
Ah, last time I checked it was a kind of ML directly (XML, I'm guessing from cymor@midwest.social their comment), but that's back in Office 2016's time, so things might have changed.
Thanks for the heads-up!
No
Just because you can open it with 7-zip doesn't mean it's a zip file. Some exes are also zip files.