News for hackers. Stuff that matters.
Re:Dotfiles Matter by jiggawatts on Wednesday September 27, 2023 @07:58AM (#37673388)
It always cracks me up to see an article using phrases like "on major platforms" and just casually ignoring the existence of Microsoft Windows.

The current (Vista and later) API for obtaining the special folder locations is documented here: https://learn.microsoft.com/en-us/windows/win32/shell/known-...

There is also a .NET API for this: https://learn.microsoft.com/en-us/dotnet/api/system.environm...

It annoys system administrators to no end to see applications writing their files essentially randomly all over the system.

Apps should use the roaming profile for user settings, the local app data folder for per-user cached data, the program data folder for system-wide data, etc...

Re:Dotfiles Matter by eindiran on Wednesday September 27, 2023 @11:02AM (#37675643)
I don't think its surprising at all that a document entitled "Dotfiles Matter" about not dumping Unix-style dotfile configuration files into a user's home directory doesn't mention an operating system that doesn't use Unix-style configuration dotfiles.
Re:Dotfiles Matter by Joker_vD on Wednesday September 27, 2023 @11:18AM (#37675901)
The Windows itself may not use dotfiles (although VS Code does IIRC), but lots of stuff lazily ported to Windows, including Git for Windows, do place random dotfiles straight into %USERPROFILE%, which they arguably shouldn't.
Re:Dotfiles Matter by jiggawatts on Wednesday September 27, 2023 @04:18PM (#37680668)
The linked Go library in the original article correctly places dot files in the correct Windows folder. Most of the others don’t.