Hacker Newsnew | past | comments | ask | show | jobs | submit | karlosos's commentslogin

Using offline storage is the approach I use in most of my hobby projects. It's simpler, and faster (in developing and in usage) and there are no loading screens.

In my kindle-clippings-manager (https://github.com/karlosos/kindle_clippings_webapp) I import highlights from Kindle and store them in localStorage. The major drawback is a size limitation (10MB). This should not be a problem in most cases but if you need to store more data then indexedDB (with bigger limits but more complexity) can solve the issue.

Linear (https://linear.app/) uses its sync engine to store the data in Web Storage. With optimistic updates, it feels like an offline app. You can read more about the sync engine here: https://news.ycombinator.com/item?id=36519448


Browser for Kindle highlights: https://github.com/karlosos/kindle_clippings_webapp

- No account needed

- Importing `My Clippings.txt` from your Kindle, exporting as json or markdown

- Browsing highlights from books, bookmarking highlights

You can check the demo here: https://karlosos.github.io/kindle_clippings_webapp/#/demo


In what scenarios it would be beneficial to rewrite the Django app in Go? Do you mean something specific when saying that Go would be good replacement?. I/O heavy or computation heavy service?


I actually did to rewrite parts of django's auth, caching in go in order to be compatible with a grpc-based mobile app. The django source code is well documented and easy enough to understand, so it wasn't a probablem signing sessions, creating users etc in go and then using them in django.

For django itself, once I slapped a database caching layer on top and tuned gunicorn/uvicorn, there were no performance issues. Go is faster, but django is fast enough.


You don't need to do a full rewrite usually. Just pull one or two CPU intensive routes out into their own service.


Could you elaborate more on how you approached testing the applications that use tRPC? I was looking for example big projects that use tRPC but they don't have tests [0]. I am wondering what you mean by testing calls with unit tests. Have you been testing individual endpoints, e.g. `trpc.postst.getAll`, or have you been testing components that use tRPC endpoints? I would appreciate some examples.

[0] https://trpc.io/docs/awesome-trpc#-open-source-projects-usin...



I have located the first commit in the bitcoin/bitcoin repo on GitHub [1]. However, there is no single occurrence of "Poker".

In the original-bitcoin repo I've found CPokerLobbyDialogBase class [2]. So I can partially confirm your theory.

According to bitcoin.com in the early stages of the project there was an idea for implementing on-chain poker game [3].

> Bitcoin was simply designed to be an in game currency for a poker game

Could you back this theory with some evidence?

[1]: https://github.com/bitcoin/bitcoin/commit/4405b78d6059e536c3...

[2]: https://github.com/trottier/original-bitcoin/blob/92ee8d9a99...

[3]: https://news.bitcoin.com/satoshis-pre-release-bitcoin-code-c...


Look at this batch of function handlers[1]. Why does it have functions named "Deal Hand" "Fold" "Call" "Leave Table" etc... ?

This thing was clearly a poker game that was co-opted by a ton of narrative changes into what it is now. I'm not saying that the co-opting and narrative changes are bad because I think the underlying function of trestles digital uniqueness is brilliant, but looking at the code tells a different story than what a lot of people would have you believe.

[1] - https://github.com/bitcoin/bitcoin/blob/4405b78d6059e536c369...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: