3 ms·
Amusingly, this is almost identical to how HN’s database works. Or worked. It wasn’t json, but it probably could’ve been.
by sillysaurusx 6y ago
Amusingly, this is almost identical to how HN’s database works. Or worked.
It wasn’t json, but it probably could’ve been.
- XorNot 6y agoI've definitely also written a big chunk of something like this (including JSON) for an internal tool. Just didn't get to realising my folders were generic tables.
- dheera 6y agoI'd go for YAML instead of JSON, or "JSON with trailing commas", or else the diffs become messy.
- jeswin 6y agoYAMLs biggest advantage over JSON: records can be appended (at the end of an existing file). Which you can't do with JSON objects, arrays etc because of the closing bracket at the end.