Textual configuration has comments, GUIs don't.
machinesplusminds.blogspot.com
Textual configuration has comments, GUIs don't.
1–10 of 28 posts
Re: Textual configuration has comments, GUIs don't.
#2Re: Textual configuration has comments, GUIs don't.
#3Re: Textual configuration has comments, GUIs don't.
#4Unless the config file uses JSON as a format. Then no comments for you!
What possible reason could there be for that?
Re: Textual configuration has comments, GUIs don't.
#5Unless the config file uses JSON as a format. Then no comments for you!
Ack! You're right, but why is this the case? JavaScript obviously has comments, so someone must have made the decision to deliberately leave them out. What possible reason could there be for that?
Re: Textual configuration has comments, GUIs don't.
#61) There's nothing inherent about guis that prevents them from having a space for comments. Perhaps gui designers should consider leaving spots for comments in complex config situations.
2) A lot of the comments I see in config files are little notes about what this or that setting actually does... comments that are generally not needed in a well designed gui. But then again, I am not a sysadmin. YYMV.
Re: Textual configuration has comments, GUIs don't.
#7Re: Textual configuration has comments, GUIs don't.
#8Earlier quoted context omitted.
Ack! You're right, but why is this the case? JavaScript obviously has comments, so someone must have made the decision to deliberately leave them out. What possible reason could there be for that?
JSON is meant to be a serialization language, not a config file language. Therefore it strips out all the things that it doesn't need. If you want a config file language then use YAML which is a much better candidate.
I'm not sure I buy the serialization argument, though: it's a human-readable serialization format. One of the big advantages of human-readable formats is that you can craft data objects by hand (for automated tests, initial bootstrapping, etc). Comments are very helpful for those situations.
Re: Textual configuration has comments, GUIs don't.
#9Maybe he hasn't seen any, but this seems a harsh conclusion. Whoever wrote the GUI could track history of changes, make comments required, and show it in the GUI.
There is a vast difference between "there is no way", and "I haven't seen it done right"
Re: Textual configuration has comments, GUIs don't.
#10While I do prefer text configuration over guis, I had two thoughts that kind of run counter to his point: 1) There's nothing inherent about guis that prevents them from having a space for comments. Perhaps gui designers should consider leaving spots for comments in complex config situations. 2) A lot of the comments I see in config files are little notes about what this or that setting actually does... comments that…