News for hackers. Stuff that matters.
Re:Who invented file extensions in file names? by crazygringo on Thursday November 02, 2023 @12:45PM (#38116307)
Tangentially related: I find it weird that relating file extensions to GUI document icons still doesn't work intuitively.

On my Mac, the document icons for file types still correspond to whatever program I've chosen to open that extension type by default.

Which is so strange -- an .mkv file isn't a VLC document; an .mp4 file isn't a QuickTime document, an .mp3 file isn't an Apple Music document, a .jpg isn't a Preview document, and a .tiff isn't a Photoshop document. What the heck?

I wish the OS would just define reasonable, attractive, default document icons for every standard file type, that applications couldn't control/overwrite. Reserve application-defined document icons just for those apps who truly have their own proprietary file format (e.g. .psd or .docx).

Re:Who invented file extensions in file names? by leejoramo on Thursday November 02, 2023 @01:11PM (#38116766)
I always liked the Classic macOS way for using "File Type" and "File Creator" meta data. File extensions were not used at the operating system level, but were useful for cross-platform sharing or as away to organize file.

The file icon would be assigned by the "Creator" Application. Double-clicking the file would cause it to be opened by the "Creator". You could choose to open a file with anything that advertised that it could work with a "File Type". There were utilities to change the "File Creator".

Re:Who invented file extensions in file names? by dheera on Thursday November 02, 2023 @01:38PM (#38117232)
It was also a royal pain in the ass to change the file type should you want to open the same file with another application, edit it, save it, then go back to the 1st application.
Re:Who invented file extensions in file names? by cm2187 on Thursday November 02, 2023 @01:39PM (#38117258)
And to deal with storage media that don't support that metadata
Re:Who invented file extensions in file names? by yjftsjthsd-h on Thursday November 02, 2023 @01:51PM (#38117440)
At that point I assume it's easier to open the file from each application rather than the finder. Which I appreciate isn't a great workflow, but probably simpler in that worldview.
Re:Who invented file extensions in file names? by dheera on Thursday November 02, 2023 @02:24PM (#38117894)
On MacOS of that era, the files didn't even show up in the "Open..." dialogs of those other apps. Many of those apps didn't have a "Show all files" option.
Re:Who invented file extensions in file names? by yjftsjthsd-h on Thursday November 02, 2023 @02:49PM (#38118244)
Oh, I didn't realize it was that rigid. Yeah, that's an unfortunate system.
Re:Who invented file extensions in file names? by wizofaus on Thursday November 02, 2023 @03:17PM (#38118595)
Isn't iOS still essentially the same way? It was one reason I stopped using iOS devices as I frequently wanted to open, for instance, pdf or image files from multiple apps.
Re:Who invented file extensions in file names? by solardev on Friday November 03, 2023 @11:44AM (#38130510)
Does IOS even have a file system? Last time I used it, I had to share files back and forth from one app to others just to open them. It was really annoying...
Re:Who invented file extensions in file names? by fulltimeloser on Thursday November 02, 2023 @03:40PM (#38118903)
Most programs I used had import and export options for these situations
Re:Who invented file extensions in file names? by account42 on Thursday November 02, 2023 @01:03PM (#38116628)
That's how it generally works under Linux desktop environments - there are generic icons based on file type no matter what application is used to open them.
Re:Who invented file extensions in file names? by linuxontheweb on Thursday November 02, 2023 @01:35PM (#38117180)
Same for my own "Linux" desktop environment (https://linuxontheweb.github.io/). One of the most enjoyable aspects of my development process is searching for the perfect Unicode symbol for a given application. I love using Unicode symbols as file icons because they combine the concepts of expressive iconography and the rendering efficiency of text.
Re:Who invented file extensions in file names? by dheera on Thursday November 02, 2023 @01:39PM (#38117255)
> expressive iconography

why not just emojis?

Re:Who invented file extensions in file names? by ajb92 on Thursday November 02, 2023 @12:50PM (#38116392)
I share your pain. Luckily there are great apps out there (I use IconChamp[1]) that let you take full control of any given extension's associated icon, among other cool things. If your point is more purely about Apple's stance, then I extend a hearty "hear hear".

[1] https://www.macenhance.com/iconchamp.html

Re:Who invented file extensions in file names? by ulfw on Thursday November 02, 2023 @12:48PM (#38116365)
To each their own. I prefer to know which app will open when I double click a file. Seems Apple agrees as that's how it's working on macOS.
Re:Who invented file extensions in file names? by johnmaguire on Thursday November 02, 2023 @01:13PM (#38116788)
100%. Having the icon show what's going to actually open lets me know whether I need to right click and "Open with..."
Re:Who invented file extensions in file names? by Workaccount2 on Thursday November 02, 2023 @02:30PM (#38117976)
I'm surprised people are adverse to this on here. Having both the extension and the graphical icon convey the same information is redundant and wasteful.
Re:Who invented file extensions in file names? by crazygringo on Thursday November 02, 2023 @03:21PM (#38118649)
It's way easier to recognize an icon at a glance, rather than scan the filename to locate and read the extension.

And the application icons are often super ugly, and often don't distinguish between the filetypes anyways.

Honestly, I'd rather do away with default application handlers altogether. Every time I double-click on a .jpeg, just ask me if I want to open it in Preview or Photoshop. When it's a .pdf, ask me about Acrobat or Preview. When it's an .mp4, ask me about VLC or QuickTime.

I have different reasons for wanting to use a different app each time (do I want to consume or edit, and edit how?), and trying to remember which one is the default handler and when I need to pick the non-default one is cognitive load I don't want to deal with.

Especially since the application-specific icons also sometimes don't even always make it clear which app it is. E.g. the IINA player assigns its own dedicated icons to video files, but you'd never guess that they open IINA.

Just give me standardized icons that are recognizable at a glance, and let me pick the application I want to use at the moment.

Re:Who invented file extensions in file names? by robotnikman on Thursday November 02, 2023 @01:47PM (#38117388)
Its the same thing on Windows as well, and many Linux desktop environments. Seems to be a universal thing.
Re:Who invented file extensions in file names? by kube-system on Thursday November 02, 2023 @02:51PM (#38118263)
I think it is intuitive, the icon indicates which application you are opening. If I want to know which file type it is, I turn on 'show file extensions'.
Re:Who invented file extensions in file names? by toast0 on Thursday November 02, 2023 @03:40PM (#38118906)
> Which is so strange -- an .mkv file isn't a VLC document; an .mp4 file isn't a QuickTime document, an .mp3 file isn't an Apple Music document, a .jpg isn't a Preview document, and a .tiff isn't a Photoshop document. What the heck?

Aren't they? Most of these tools can open many specific types of documents, so you might want to know if a document is a movie or a picture in addition to what program will open it.

And of course there's the issue that Preview is actually an editor.

Re:Who invented file extensions in file names? by solardev on Thursday November 02, 2023 @04:14PM (#38119424)
I have the opposite preference... I want to know if my OS is going to open a PDF in Preview or it was hijacked by Adobe again, or if a .cfg file is going to open up in some useless Microsoft System Configuration app, or a JSON file is gonna open up my super bloated IDE instead of a text editor.

It's an additional piece of information, rather than just mirroring what the extension already tells you.