Join Nostr
2026-05-05 00:14:54 UTC

Ryan Barrett on Nostr: Consider the world’s simplest database: #!/bin/bash db_set () { echo "$1,$2" >> ...



Consider the world’s simplest database:
#!/bin/bash

db_set () {
echo "$1,$2" >> database
}

db_get () {
grep "^$1," database | sed -e "s/^$1,//" | tail -n 1
}


– Designing Data-Intensive Applications, 2nd edition, Martin Kleppmann and Chris Riccomini