3 ms·
I think people like the ease of human-readable formats for debugging.
by emodendroket 9y ago
I think people like the ease of human-readable formats for debugging.
- IshKebab 9y agoJust decode the data before logging it... I mean, I can't think of many situations where I'm debugging something by looking at raw bytes when I couldn't easily just dump the decoded representation instead. People don't use BCD for ease of debugging do they?
- emodendroket 9y agoI mean, maybe it's worth doing anyway, but it's an extra bit of friction. Plus you probably can avoid issues where the binary doesn't decode properly because of version changes, different environment, etc.
- foobarian 9y agoIn Javaland BSON for production messages performs close to JDK serialization, and for debugging it's not hard to override the content types at runtime (or log the messages in readable form where they are getting serialized).