What about "I'll accept your pull request if you accept my merge request"?
- Posts
- 1
- Comments
- 197
- Joined
- 12 mo. ago
- Posts
- 1
- Comments
- 197
- Joined
- 12 mo. ago
- JumpRemoved
Happy Birthday Linux ❤️🩹
- JumpDeleted
Permanently Deleted
- JumpDeleted
Permanently Deleted
- JumpDeleted
Permanently Deleted
- JumpDeleted
Permanently Deleted
I mostly agree with you, but this is not quite true:
Yes, the DE-specific implementations is pointless (as far as I know, I use a WM), but the XDG implementation is actually used first, and the function returns true if any impl returns true, like
xdg() || gnome() || gnome_old() || kde().This isn't that bad? Yes, having an enum with three variants would be better and more readable, but the code just defaults to light mode if nothing wants dark mode, and prefers dark mode even if separate impls want both light and dark mode.
With multiple impls, you have to resolve conflicts somehow. You could, for example, match on current DE/WM name, only using the current DE's impl, defaulting to XDG, avoiding the problem entirely or just use first impl that doesn't return "default" or "error".
I don't like AI generated code, having reviewed some disgusting slop before. But it's better to criticize the code's actual faults, like the incorrect impls (which you listed) or failing the Linux CI.