HNHacker News
TopNewBestAskShowJobs

codewritero

23 karma · joined April 29, 2020

submissionscomments
codewritero··on Why I stopped using JSON for my APIs
I love to see people advocating for better protocols and standards but seeing the title I expected the author to present something which would be better in the sense of supporting the same or more use cases with better efficiency and/or ergonomics and I don't think that protobuf does that.

Protobuf has advantages, but is missing support for a tons of use cases where JSON thrives due to the strict schema requirement.

A much stronger argument could be made for CBOR as a replacement for JSON for most use cases. CBOR has the same schema flexibility as JSON but has a more concise encoding.

codewritero··on My new Git utility `what-changed-twice` needs a new name
Jujutsu has a command which is helpful for this sort of workflow called absorb which pushes all changes from the current commit into the most recent commit which modified that file. (Each file may be merged into a different commit).
codewritero··on All clocks are 30 seconds late
Analog clocks mostly don't have the problem the author is complaining about since most minute hands move once per second and you can easily see (depending on your eyesight and distance to the clock) that the minute is partially consumed.

I agree though that this is a downside to digital clocks which don't show seconds, though whether the best fix is to round instead of averaging is hard to say.

codewritero··on Humans can't endure temperatures and humidities as high as previously thought
Can’t find it. The title was along the lines of global warming might result in a net increase in usable land.
codewritero··on Humans can't endure temperatures and humidities as high as previously thought
50% yes. It also got to 100% humidity occasionally which was definitely worse than the hot dry days.
codewritero··on Humans can't endure temperatures and humidities as high as previously thought
It wasn’t that long ago that an article making the exact opposite point was at the top of this site.
codewritero··on Humans can't endure temperatures and humidities as high as previously thought
This seems to be a misuse of the term “endure”. I spent most of my childhood in a place that frequently got hotter than the numbers quoted in this article.
codewritero··on Stripe have suspended the Flipper One campaign
Judging from Twitter comments I wonder if it’s due to a high number of chargebacks.