Live data from Hacker News

Dotfile madness

0x46.net

531–534 of 534 posts

Re: Dotfile madness

#531

Earlier quoted context omitted.

macOS knows when files and directories are moved via inodes: https://eclecticlight.co/2018/03/03/how-macos-tracks-your-fi... so I can't see any conceptual reason to keep .DS_Store.

Because macOS doesn't know when files and directories are moved on other devices, network drives , etc. Nor can it preserve that metadata across other devices, network drives, etc. without copying it across somehow; the easiest solution was to store that data in hidden files and let Finder handle their automatic transfer. Failure of your imagination isn't failure on someone else's part.

Hmmm this is the first good argument I've heard for the existence of .DS_Store files. You get a point :-)

I'd be curious to test this, by zipping folders, copying them to other machines, etc. My gut feeling is that Apple probably missed something and it doesn't quite preserve the metadata like it should (most likely due to version incompatibilities or duplication of state somewhere else in the OS that overrides it). I'd be pleasantly surprised if it did work though.

It brings up another point however, that probably metadata is as important as data (and sometimes more important, if you look at how we organize data today). The earliest filesystems probably should have implemented multidimensional storage somehow, similar to the metadata in the BeOS filesystem. I'm not familiar with how it's implemented, and it probably also breaks when files are copied to another filesystem, unfortunately:

https://news.ycombinator.com/item?id=12309686

Re: Dotfile madness

#532
post #317

Earlier quoted context omitted.

> you have to put so many gitignore exceptions and I'm not even talking about the gigs of data all the chromium derivatives put into that folder Yeah but chrome devs half-assing the trivial xdg spec doesn't mean that xdg sucks - its just not implemented properly.

I think xdg has an issue of being obtuse when I googled it a while ago, it was very confusing, and I didn't find any real definitions. However I didn't look that hard.

I agree, you didn't look very hard.

Re: Dotfile madness

#533
post #286

Earlier quoted context omitted.

This is particularly weird, since click (snap's "predecessor" at Canonical/Ubuntu) was fully XDG compliant, even encouraging developers to separate data from cache etc. (unlike flatpak which just dumps everything in ~/.local/share/[...], though that is still infinitely better than using ~/snap).

> unlike flatpak which just dumps everything in ~/.local/share/[...] Here you are referring to separating the config and data? Is this actually a problem? I can see how for things like games it would be valuable to have a special location for thing like saves games, like how you can move the roaming save for minecraft from a computer to another; but I never understood the net gain from splitting the application files…

Curated configuration generally outlives data. If storage space becomes an issue, there is value in recovering storage space but config is generally small and much more important in the long term.

Re: Dotfile madness

#534
post #388

Earlier quoted context omitted.

This is particularly weird, since click (snap's "predecessor" at Canonical/Ubuntu) was fully XDG compliant, even encouraging developers to separate data from cache etc. (unlike flatpak which just dumps everything in ~/.local/share/[...], though that is still infinitely better than using ~/snap).

I just use 'exa' with --ignore-glob option to filter out unnecessary folders as 'ls' replacement and things are clean. It also has an option to ignore entries listed in your .gitignore.

So, invest in yet another program that likely further exacerbates the issue just to sweep the underlying issue under the rug?
Post reply on HN