3 ms·
That's not config data that you have here, that's your program input (hint: you pipe it to stdin). TOML is for config, config that users edit by hand, not inpu
by BiteCode_dev 6y ago
That's not config data that you have here, that's your program input (hint: you pipe it to stdin).
TOML is for config, config that users edit by hand, not input.
- jiggawatts 6y agoConfig is data. Data is input.
- BiteCode_dev 6y agoAnything that is not hardcoded is technically input. But there is a reason we have a word for config. It's a specific kind of input: it feeds the boostrapping state of your program, it's not the main data your program process. The difference is important: structure, complexity and dynamism requirements are not the same.
- bronson 6y agoThat looks like hand-edited config to me. At least, I've maintained files similar to that in past gigs. It's a nice example of how CSV can work well if you don't need to worry about quoting.
- BiteCode_dev 6y ago1 - you don't pipe config to stdin. If you use standard input, that's your main input. 2 - config sets your program boostrapping state. It's not the main data your program processes. That's your main input. IP addresses are what the script processes. It's not config.
- bronson 6y ago1 - If you google 'config stdin' you'll see a number of good reasons a program might want to accept configuration on stdin. (also, not that it matters, but my program read it from a file) 2 - Those IP addresses are probably not the main data the program processes. In my case, they were configuration, describing where an auditing processor scrapes input and how to allocate compute.
- BiteCode_dev 6y agoScraping is not bootstrapping. That's the main process. Main input can have several sources.
- bronson 6y agoIf you're redefining the main input to include all input data (including hand-edited CSV files) then you're just contradicting yourself. This conversation is tedious and unproductive, I'll leave you alone.