You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't really a question and more so a request for comments.
In CLI Application Directory section of the documentation you suggest using application directory for storing configuration files. I feel like this is a really bad suggestion because it teaches people to use non-standard directories instead of XDG Base Directory Specification.
While, app_diris a valid directory for many types of files (like Lark's grammar files), files generated by the user during runtime should really go into their respective XDG_*_HOME directories.
Using app_dir like this does make things more approachable for a new developer, but only at the cost of not teaching him how to do things the right way.
And then it's very difficult to migrate non-XDG application later on. For example cargo has an issue about not following XDG that dates back to 2015:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Example Code
Description
This isn't really a question and more so a request for comments.
In CLI Application Directory section of the documentation you suggest using application directory for storing configuration files. I feel like this is a really bad suggestion because it teaches people to use non-standard directories instead of XDG Base Directory Specification.
While,
app_dir
is a valid directory for many types of files (like Lark's grammar files), files generated by the user during runtime should really go into their respectiveXDG_*_HOME
directories.Using
app_dir
like this does make things more approachable for a new developer, but only at the cost of not teaching him how to do things the right way.And then it's very difficult to migrate non-XDG application later on. For example cargo has an issue about not following XDG that dates back to 2015:
Operating System
Linux, macOS
Beta Was this translation helpful? Give feedback.
All reactions