Hacker News new | ask | show | jobs
by AeroNotix 1095 days ago
You're basically suggesting the windows registry.
2 comments

The problem with the Windows registry, at least back in the day, was that it was a single file that could be corrupted and it would wreck your whole system.

I think having a standard utility API for *nix configs makes a lot of sense. I'm surprised it doesn't exist.

I tried to find one, and there are some libraries for reading and parsing in every language, but nothing that seems to cover everything.

This bash script seems to be a fairly "built in" way to parse them: https://unix.stackexchange.com/questions/441076/which-is-the...

> The problem with the Windows registry, at least back in the day, was that it was a single file that could be corrupted and it would wreck your whole system.

Exactly. But Registry has been using NTFS and it's capabilities for rollbacks and recovery. Therefore, the problem is mostly solved. There are occasions [0] of bugs causing corruptions though but they are very rare.

0. https://www.bleepingcomputer.com/news/microsoft/windows-10-n...

macOS has something similar also with defaults [1].

https://macos-defaults.com/#%F0%9F%99%8B-what-s-a-defaults-c...