Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why aren't parameters saved in JSON files (or similar formats)? #118

Closed
nbro opened this issue Dec 30, 2020 · 9 comments
Closed

Why aren't parameters saved in JSON files (or similar formats)? #118

nbro opened this issue Dec 30, 2020 · 9 comments

Comments

@nbro
Copy link
Contributor

nbro commented Dec 30, 2020

Parameters are specified in text files, which is like the rawest possible file format that you could use to solve this problem. JSON files or similar formats should probably be preferred over plain text files, because they allow a hierarchical/structural representation of the parameters and their values.

@dvpfagan
Copy link
Collaborator

dvpfagan commented Dec 30, 2020 via email

@nbro
Copy link
Contributor Author

nbro commented Dec 30, 2020

@dvpfagan Ok, what happens if I contribute to this project? Will I be included in the list of contributors and authors, including in the license? You're using GPL, so I guess so (although I don't remember the details). I would like to be acknowledged (i.e. officially be part of the authors/contributors) if I contribute to this project.

@dvpfagan
Copy link
Collaborator

@jmmcd thoughts on this? Do we add a contributors section to the readme on the main page? Should we have something in the code explicitly giving credit to people? Should we add @nbro as a member to the project upon a successful pull request?

@nbro
Copy link
Contributor Author

nbro commented Dec 30, 2020

@dvpfagan I opened an issue specifically targetting the "license & authors" issue: #122, so we may just talk about it there.

@jmmcd
Copy link
Collaborator

jmmcd commented Jan 6, 2021

Changing from plain text to JSON for parameter files would be easy but would not provide any benefit unless we actually took advantage of (eg) the hierarchy. But that would require rethinking and reworking a lot of parameter-handling code. I don't think we should pursue this unless we see a strong example where plain-text can't do the job.

@nbro
Copy link
Contributor Author

nbro commented Jan 6, 2021

@jmmcd JSON or other file formats may provide more flexibility in the future. I'm not saying that this should be done immediately, but it looks like text files aren't really the right tool for this job. Moreover, it shouldn't be so difficult to change the code. I can do it myself, after someone accepts my latest pull request: #121.

@jmmcd
Copy link
Collaborator

jmmcd commented Jan 6, 2021

As I said, I would need a more convincing case than possible future flexibility. I don't think a PR on this will be accepted.

@nbro
Copy link
Contributor Author

nbro commented Jan 6, 2021

@jmmcd One advantage of using JSON (or similar formats) is that there are tools that parse JSON and beautify them, so make all files look consistent. With your current setup, it's not possible, unless you write your own beautifier. This is one of the advantages. The other is that configurations' values are really only used for certain parts of package/process, so we could have a hierarchical definition of the configurations, if we wanted. This does not mean we will do this.

@jmmcd
Copy link
Collaborator

jmmcd commented Jan 6, 2021

We really don't need a tool to pretty-print the current colon-separated format.

@jmmcd jmmcd closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants