←back to thread

200 points dcu | 1 comments | | HN request time: 0s | source
Show context
CharlesW ◴[] No.44457094[source]
Pocketbase is already the poor man's BaaS, and is minimalist compared to the two others mentioned.

> Data stored in human-readable CSVs

The choice to not use a database when two near-perfect tiny candidates exist, and furthermore to choose the notorious CSV format for storing data, is absolutely mystifying. One can use their Wasm builds if platform-specific binaries offend.

replies(6): >>44457217 #>>44457440 #>>44457602 #>>44459642 #>>44460110 #>>44460962 #
loeber ◴[] No.44457602[source]
In 2025, pretending that a CSV can be a reasonable alternative to a database because it is "smaller" is just wild. Totally unconscionable.
replies(5): >>44457929 #>>44458129 #>>44458193 #>>44460475 #>>44464263 #
ncruces ◴[] No.44457929[source]
In 2020 Tailscale used a JSON file.

https://tailscale.com/blog/an-unlikely-database-migration

replies(1): >>44457971 #
CharlesW ◴[] No.44457971[source]
If you continue reading, you'll see that they were forced to ditch JSON for a proper key-value database.
replies(1): >>44458561 #
ncruces ◴[] No.44458561{3}[source]
I know. Now see how far JSON got them.

So why wouldn't you just use a text format to persist a personal website a handful of people might use?

I created one of the SQLite drivers, but why would you bring in a dependency that might not be available in a decade unless you really need it? (SQLite will be there in 2035, but maybe not the current Go drivers)

replies(2): >>44459591 #>>44463448 #
1. jpc0 ◴[] No.44463448{4}[source]
> SQLite will be there in 2035, but maybe not the current Go drivers

Go binaries are statically linked, unless you expect the elf/pe format to not exist in 2035 your binary will still run just the same.

And if not well there will be an SQLite driver in 2035 and other than 5 lines of init code I don’t interact with the SQLite drover but rather the SQL abstraction in golang.

And if it’s such an issue then directly target the sqlite C api which will also still be there in 2035.