logoalt Hacker News

streetfighter64today at 1:58 PM1 replyview on HN

> Don't use binary formats when it isn't absolutely needed.

JSON in particular isn't very good [0] but I'd also argue that text formats in general aren't great. Isn't it a lot better that an int32_t always takes exactly 4 bytes instead of anywhere between one and eleven bytes (-2147483648)?

[0] https://news.ycombinator.com/item?id=40555431


Replies

coderatlargetoday at 4:56 PM

one use-case is if you need to be able to stream the data.