When you double click a .txt file, Ubuntu asks you if you want to "run" or "display" the file. IT'S A TXT FILE, YOU IDIOT, OF COURSE I WANT TO DISPLAY IT. If I wanted to run it I'd have called it .sh or .pl or whatever.
I hate that Linux .txt file "Run" or "Display" thing too. There should be a checkbox that says, "Always ****ing do this, no matter what".
People building OSes should realize already that extensions work better than a computer second guessing my intentions and usage scenarios, and they always will.
It's not about "second guessing" intentions. If an operating system - in 2011 - can't recognize a filetype without putting an extension on the end, then it's a pretty stupid operating system. A text file doesn't automatically morph into an image file just by changing extension. If you remove an extension, the OS gets confused and can't open the file. Why is it so hard for an operating system to know what files it has? It should automatically detect it using the first few bytes of the file (like Amiga and BeOS does), but still be user configurable if you want to override it. (always open with this application, always open all similar files with this application)
On my Amiga, I could set up double-click to open a JPG in a viewer (automatically detected without extension) and left-right-click to open it in a graphics program. These same actions were configured - if file was detected as text - to open a smooth scrolling text viewer on double-click and an editor on left-right-click. I never had a problem opening the file I want with the application I want. I never had the problem of the file not being recognized because it had the wrong extension or no extension. (or fake extension to trick the user into thinking it was something it wasn't)
Maybe you want to always open JPG files made by a certain application using a certain viewer - different from the viewer you use for regular JPG files. Detected filetype would be the same, but you want different actions. In that case, you could use an extension - whatever you want to make up. You configure files with this new extension to open in the viewer of your choice - overriding the filetype. This was also easily doable on Amiga.
Trying to get "modern" operating systems to operate as nicely as my old Amiga has proven to be an impossibility.