/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Show HN: Sir – Git-diff-able JSON database on yer filesystem
(github.com)
115 points
graderjs
| 2 comments |
06 Nov 20 03:19 UTC
|
HN request time: 0.437s
|
source
Show context
sillysaurusx
◴[
06 Nov 20 04:17 UTC
]
No.
25004844
[source]
▶
>>25004554 (OP)
#
Amusingly, this is almost identical to how HN’s database works. Or worked.
It wasn’t json, but it probably could’ve been.
replies(2):
>>25005309
#
>>25005392
#
1.
dheera
◴[
06 Nov 20 06:17 UTC
]
No.
25005392
[source]
▶
>>25004844
#
I'd go for YAML instead of JSON, or "JSON with trailing commas", or else the diffs become messy.
replies(1):
>>25005450
#
ID:
GO
2.
jeswin
◴[
06 Nov 20 06:26 UTC
]
No.
25005450
[source]
▶
>>25005392 (TP)
#
YAMLs 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.
↑