I’m curious about use the .txt extension on README. I know Hoe does
this. Why? Is this just to make it easier for Windows developers? Or
is there some other reason?
T.
I’m curious about use the .txt extension on README. I know Hoe does
this. Why? Is this just to make it easier for Windows developers? Or
is there some other reason?
T.
On Oct 29, 2007, at 4:06 PM, Trans wrote:
I’m curious about use the .txt extension on README. I know Hoe does
this. Why? Is this just to make it easier for Windows developers? Or
is there some other reason?
Not just Windows. The Mac OS X Finder recognizes the txt extension.
Regards, Morton
Quoth Morton G.:
On Oct 29, 2007, at 4:06 PM, Trans wrote:
I’m curious about use the .txt extension on README. I know Hoe does
this. Why? Is this just to make it easier for Windows developers? Or
is there some other reason?Not just Windows. The Mac OS X Finder recognizes the txt extension.
Regards, Morton
Surely It’s not just about recognition? Linux graphical file-explorers
(Nautilus, Konqueror, etc) recognise the ‘.txt’ extension, but it isn’t
required.
Regards,
On Oct 29, 2007, at 2:06 PM, Trans wrote:
I’m curious about use the .txt extension on README. I know Hoe does
this. Why? Is this just to make it easier for Windows developers? Or
is there some other reason?
Hoe is using regexp patterns to select files to include in the gem.
One of those patterns includes all files with a .txt extension.
Putting .txt onto the end of the README is easier than creating a
special regexp case for all files like README, History, Manifest, etc.
This falls under the “sloth” rule from Larry Wall.
Blessings,
TwP
On Oct 30, 11:00 am, Tim P. [email protected] wrote:
This falls under the “sloth” rule from Larry Wall.
Ah, I see. Thanks for explaining. I just wanted to makes sure I wasn’t
missing any crucial aspect of cross-platform support b/c of it. If
it’s just a Hoe “slothy” thing, then I think I’m okay. I just use [A-
Z]*, and have a config option for any special exclusions.
Thanks,
T.
Konrad M. wrote:
Surely It’s not just about recognition? Linux graphical file-explorers
(Nautilus, Konqueror, etc) recognise the ‘.txt’ extension, but it isn’t
required.Regards,
Konrad M. [email protected] http://konrad.sobertillnoon.com/
I think any decent file management program should use both MIME and
.extension. I know KDE/Konqueror does this but I think Windows is more
concerned with the .txt and skips looking at the text/plain mime type
but I’ve
never really had cause to screw with file associations under Windows NT
→ I
just right click and open with vim it
By default I assume files without extensions are text files (UTF-8, ISO
8859-x, ASCII). If it’s full of garbage I know it’s binary. When in
doubt I
just use file(1) since it’s used in just about every Linux and BSD
system out
there and has a Windows port as well.
TerryP.
PS: Yes I do prefer my unix shell to file managers.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs