4 ms·
Oh shut up. The issue here is much more than just "Windows suckzzz!!!!". Get off your high horse and stop being an OS elitist, it's pathetic. edit: I now under
by shocks 13y ago
Oh shut up. The issue here is much more than just "Windows suckzzz!!!!". Get off your high horse and stop being an OS elitist, it's pathetic.
edit: I now understand this is a reference to a comic that was published when I was five years old. Hah.
- mikeyagley 13y agoIt's a reference to this Dilbert cartoon: http://dilbert.com/strips/comic/1995-06-24/ http://dilbert.com/strips/comic/1995-06-24/
- drcube 13y agoBesides being a joke based off a classic Dilbert cartoon, Windows really is broken, at least in this one specific area. File extensions should only be used by people. The OS should have other ways of knowing the file type. And ".txt" is redundant. The default assumption should be "text" and only other file types should require extensions. IMHO.
- shocks 13y agoNotice that I never disagreed with anyone on this. I also think that file extensions are broken. My issue is that you (and a few others) lay the blame solely on Redmond. The issue of file extensions goes far beyond Windows. Every operating system is subject to them.
- drivebyacct2 13y agoNo actually, not really.
- mrbrowning 13y agoOut curiosity, what sort of mechanism do you think is best for the OS to figure out the file type? Metadata can be opaque and leads to applications being rigid about what type of input they'll accept, and sniffing magic bytes can't possibly be sufficiently reliable. Relying on extensions is suboptimal in terms of polluting what should be a logically independent attribute of a file, the name, with information about its type, but practically it seems like a serviceable and flexible solution.
- yew 13y agoThe 'correct' way to determine the type of a file is indeed to look at metadata. This includes things like magic numbers and extensions, but shouldn't be limited to those things. Just looking at extensions can be misleading because not all files have extensions and some extensions correspond to multiple types of files. In general, no method will be perfect because no modern OS provides dedicated file typing (some older operating systems stored the file type as metadata, although even that breaks down at the boundary between your computer and the rest of the world). The imperfection is usually manageable, depending on the type of file (which is the real answer to your question - it depends on why you want to know). Applications that won't open what I tell them to because they disagree about the file type are just broken. (Having to rename files whenever I want to open them is annoying. Having to replace a good piece of software because it refuses to follow instructions is even more annoying.)