29 ms·
Here's an example of gold plating from a CLI I created this past weekend. I did not like the terse errors when parsing JSON. "invalid type: boolean `true`, exp
by marxism 1y ago
Here's an example of gold plating from a CLI I created this past weekend.
I did not like the terse errors when parsing JSON. "invalid type: boolean `true`, expected a string", line: 3, column: 24
So I asked for Elm style friendly error messages that try to give you all the information to fix things right up front.
https://github.com/PeoplesGrocers/json-archive/blob/master/src/reader.rs#L270-L284 https://github.com/PeoplesGrocers/json-archive/blob/master/s...
https://github.com/PeoplesGrocers/json-archive/blob/master/src/diagnostics.rs https://github.com/PeoplesGrocers/json-archive/blob/master/s...
And then since I had time, I asked for some documentation to show/explain the various edge case handling decisions I made.
https://github.com/PeoplesGrocers/json-archive/blob/master/docs/state-command.md#no-observations-match-timestamp https://github.com/PeoplesGrocers/json-archive/blob/master/d...
It's gold plating because no one wants or needs my little tool. If I spent that same hour iterating on the output format to be more user friendly while at work, I would be taken out behind the woodshed and shot. It's pure wasted effort.
- jcims 1y agoExactly.