Feedback and Comments
The magic of magic numbers, Linux isn’t Minix, a correction, and free software goes to jail…
Thursday, December 15th, 2005
Norm!
In September 2005’s Linux Magazine, a reader asked why magic numbers are a better solution than Windows’ s file extension mechanism. I wanted to add to[ “Power Tools” columnist Jerry Peek’s] reply.
I can think of several reasons that magic numbers are better than extensions.
First and foremost, extensions on Windows are little more than vanity. Microsoft got to .doc first, so they own it. If I want a document format, I have to name it something else. In addition, because there’s no (global) registry, my nifty extension loses as soon as some big vendor steps on me.
For the use of short names, Apple did much better with file types. The Macintosh keeps the type (or kept, as I don’t know how this has evolved), the equivalent of the extension for this purpose, in a consistent location and vendors have an opportunity to register new types. Unfortunately, dealing with a centralized authority of “magic numbers” is also problematic.