4 ms·
The "What if the output changes?" argument doesn't hold water in my books. If the command supported JSON internally, then it can still change its JSON output. E
by rcfox 14y ago
The "What if the output changes?" argument doesn't hold water in my books. If the command supported JSON internally, then it can still change its JSON output. Either way, you have to handle it. If you're managing the filter yourself, then you can handle the change in the program's output while keeping the output of the filter unchanged.
Now, which is going to be easier to test with a new input scheme: the filter that only does one thing, or your program?
- renownedmedia 14y agoA filter is an added level of processing and complexity. Why take data being used in the app, convert it into a human readable format, just to have it parsed with regex and made readable by another program? Now, which is going to be more convenient: Rewrite a regular expression or grab a different data node? Personally I would rather have the data format change than have rebuild a complex parser.