Tell HN: The way I do simple data management for new prototypes
10 points
21 hours ago
| 5 comments
| HN
Hi folks! I have huge success on a prototype of this approach:

- Store all data as json

- App loads: load full json on a client

- Something changes by user - change json locally and every 10 seconds save whole json to backend as a single json file

- also every 10 seconds load the updated json from backend to client.

Yes, I know, parallel access problems, lack of schema, lack of db, using file to store. But how much it makes life easier and speed ups development at start! I am in this over 20 years, and I like dumb stupid solutions applied properly. Duct taping forever!

tacostakohashi
10 hours ago
[-]
Nice!

Files are pretty handy. It's a bit surprising how many people seem to have forgotten they are a thing... but not that surprising, given how hard big tech have tried to uninvent them.

reply
awright96
12 hours ago
[-]
That's certainly one of the development strategies of all time
reply
crabl
10 hours ago
[-]
you can also chuck a json blob into LocalStorage
reply
owebmaster
9 hours ago
[-]
Use indexeddb
reply
apothegm
8 hours ago
[-]
Y tho?
reply