News for hackers. Stuff that matters.
Re:Writing a Simple Windows Driver in Rust by nicce on Saturday February 08, 2025 @02:30PM (#42985510)
> Just like a UNIX file system ends up filled with .dotfiles garbage I didn't ask about to have around.

Which one is better - a configuration file in some place or default configuration buried inside binary blob?

Re:Writing a Simple Windows Driver in Rust by ddulaney on Saturday February 08, 2025 @02:40PM (#42985580)
Default configuration IMO.

I actually really like the way git does it, where it reads each of these in order, last one wins.

- Default configuration compiled in

- Global configuration

- Per-user configuration

- Per-project configuration

You can opt-in to however much configuration complexity you need. Just cloning the occasional thing? Don't bother configuring, the global defaults are probably good enough. Simple commits and pushes? Make a user-level dotfile in your $XDG_CONFIG_HOME to set some basic info. Complex per-project aliases? If you want that, go ahead and opt in.

Contrast that with programs that just dump their whole default config into my home dir on first run. Just filling up with nonsense, often no way to tell what I changed or didn’t.

Re:Writing a Simple Windows Driver in Rust by nicce on Saturday February 08, 2025 @03:53PM (#42986110)
That is good one, I agree. I have seen some odd cases, where the configuration options were hided too well when they were compiled to the binary itself. But that is probably an another issue.
Re:Writing a Simple Windows Driver in Rust by hulitu on Saturday February 08, 2025 @05:00PM (#42986561)
> You can opt-in to however much configuration complexity you need.

TO DO. /s

Re:Writing a Simple Windows Driver in Rust by pjmlp on Saturday February 08, 2025 @02:44PM (#42985607)
Hardly makes a difference when the outcome is the same.

Also no one edits text files by hand, we use tools for that, tools that manipulate what is anyway a stream of bytes, whose meaning is given by whatever tool is used to manipulate such stream of bytes.

Re:Writing a Simple Windows Driver in Rust by Zopieux on Sunday February 09, 2025 @06:10AM (#42989929)
Speak for yourself.
Re:Writing a Simple Windows Driver in Rust by pjmlp on Sunday February 09, 2025 @09:36AM (#42990931)
I am indeed.