HNHacker News
TopNewBestAskShowJobs

bruhboribhe

110 karma · joined February 12, 2022

submissionscomments
bruhboribhe··on How to Design Better APIs
Active use is really irrelevant if you only plan on using it inside a company, because you can implement a client and server within 30 mins to an hour, no external tools needed. The spec is clear and readable. It's excellent. We use it with a TypeScript codebase and just share the interfaces for the services in a monorepo. The spec is so simple it doesn't really need an update.

If you want a more advanced implementation with type inference for Typescript you can use this: https://github.com/shekohex/jsonrpc-ts

I'd still recommend implementing your own, my own implementation is based off the one above.

The only caveat compared to GRPC is you lose out on field validation due to it not being protobuf/and the obvious json decode overhead

Edit: if you want to know some current users of it, I believe the Ethereum protocol uses it heavily

bruhboribhe··on How to Design Better APIs
We do, it's called JSON-RPC.
bruhboribhe··on Ukraine Government email to ICANN (requesting shutdown of .ru root DNS servers)
More info: https://twitter.com/woodyatpch/status/1498472865301098500
bruhboribhe··on The housing market needs more condos
> Between 1956 and 1986, the price of land increased by as much as 5,000 per cent in Japan. At the peak of the bubble economy, Tokyo real estate could sell for as much as US$139,000 per square foot, which was nearly 350 times as much as equivalent space in Manhattan. By that reckoning, the Imperial Palace in Tokyo was worth as much as the entire US state of California. The Japanese property market was worth four times more than the US property market

https://www.scmp.com/magazines/style/news-trends/article/309...