News for hackers. Stuff that matters.

karlosos

Re:Simple Lasts Longer on Tuesday January 09, 2024 @03:44AM (#38923791)
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

Re:Ask HN: What apps have you created for your own use? on Wednesday December 13, 2023 @04:09AM (#38624614)
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

Re:Django 4.2 Released on Monday April 03, 2023 @04:24PM (#35430739)
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?
Re:Full-Stack TypeScript with tRPC and React on Tuesday March 14, 2023 @08:41PM (#35161994)
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...

Re:Bitcoin is failing at becoming the future of money on Thursday May 20, 2021 @04:39PM (#27226908)
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...