Live data from Hacker News

Rob Pike: the origin of dotfiles

plus.google.com

11–20 of 156 posts

Re: Rob Pike: the origin of dotfiles

#11
post #3

This is a problem that libetc is supposed to help solve: http://ordiluc.net/fs/libetc/

That’s nice, shame it’s not maintained. On the other hand, one the goals of XDG is to differentiate between application cache, actual settings etc. If FooApp stores 2GB cache file in .foo, redirecting it blindly to .config just makes my backups that much harder.

Re: Rob Pike: the origin of dotfiles

#12
post #7
post #4

Earlier quoted context omitted.

It also begs the question, why it was named "etc" :)

I'm guessing it's because /etc contains configuration files and dot-files are just configuration files. Or do you mean, why was /etc named etc?

I think they meant the latter. Why is it /etc instead of, perhaps more obvious, /config or /settings?

Re: Rob Pike: the origin of dotfiles

#13
post #7
post #4

Earlier quoted context omitted.

It also begs the question, why it was named "etc" :)

I'm guessing it's because /etc contains configuration files and dot-files are just configuration files. Or do you mean, why was /etc named etc?

For the latter, a lazy copy/paste from Wikipedia:

"There has been controversy over the meaning of the name itself. In early versions of the UNIX Implementation Document from Bell labs, /etc is referred to as the etcetera directory as this directory historically held everything that did not belong elsewhere (however, the FHS restricts /etc to static configuration files and may not contain binaries)."

Re: Rob Pike: the origin of dotfiles

#15
post #14

That's really interesting. I always assumed hiding dotfiles was a deliberate convention, but to semi-quote one of the commenters, Rob's got a point. Or two.

Heh, I remember when I first found out about dotfiles. I thought it was a genius idea...

Little did I know.

Re: Rob Pike: the origin of dotfiles

#16
post #2

Instead of putting a dotfile or dotdir in the user's home directory, do follow the XDG Base Directory specification: http://standards.freedesktop.org/basedir-spec/basedir-spec-l... . It's easy to understand and requires only a marginal increase in effort/code.

I see no benefit.

It's not at all easy to understand, nor easy to implement, nor does it have any tangible advantages.

It's one of these superfluous pseudo-standards that do nothing but add needless clutter. But gladly nobody seems to be using it anyway, I see only one directory in my ~/.local: vlc.

Re: Rob Pike: the origin of dotfiles

#17
post #4
post #3

This is a problem that libetc is supposed to help solve: http://ordiluc.net/fs/libetc/

It also begs the question, why it was named "etc" :)

The origins of /etc are lost in history. Wikipedia [1] says that at Bell Labs /etc was pronounced "et caetera," and contained files that didn't belong elsewhere. And it had the advantage over conf or misc that it was only 3 letters.

[1] http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

Re: Rob Pike: the origin of dotfiles

#18
post #16
post #2

Instead of putting a dotfile or dotdir in the user's home directory, do follow the XDG Base Directory specification: http://standards.freedesktop.org/basedir-spec/basedir-spec-l... . It's easy to understand and requires only a marginal increase in effort/code.

I see no benefit. It's not at all easy to understand, nor easy to implement, nor does it have any tangible advantages. It's one of these superfluous pseudo-standards that do nothing but add needless clutter. But gladly nobody seems to be using it anyway, I see only one directory in my ~/.local: vlc.

Check out your .config and .cache directories.

Re: Rob Pike: the origin of dotfiles

#19

For those who object that dot files serve a purpose, I don't dispute that but counter that it's the files that serve the purpose, not the convention for their names. I would like to hear a good argument for why hidden files and folders are a good thing.

They are a natural segregator of novice and advanced users. If you have a limited level of interaction with the unix shell (remember than in the old days everyone in a science academic department used a Unix machine, even the dusty professors you kept in the back of the supplies cabinet), setting up their account and then making sure that they couldnt get into any trouble because they didn't know about 'ls -a' was very much a feature, trust me.

Moreover I personally much prefer them to global configuration directories because they are always local to the thing being configured and you can always override a global configuration by using them.

In fact I think they are a very elegant way to handle "hidden options" - stuff you want to expose to the power users but not bother newbies with.

tl;dr: I am not convinced they are a misfeature.

Re: Rob Pike: the origin of dotfiles

#20

For those who object that dot files serve a purpose, I don't dispute that but counter that it's the files that serve the purpose, not the convention for their names. I would like to hear a good argument for why hidden files and folders are a good thing.

I would like to hear a good argument for why hidden files and folders are a good thing.

They keep users from monkeying with stuff until they are smart enough to find the hidden files.

Post reply on HN