3 ms·
In the post they say they didn’t do this bc they’d just be trading long strings for deeply nested objects.
by alephaleph 4y ago
In the post they say they didn’t do this bc they’d just be trading long strings for deeply nested objects.
- lalaithion 4y agoDeeply nested objects grow linearly with the size of history, not exponentially.
- NegativeLatency 4y agoAgreed, I'd take deeply nested objects, over deeply nested strings (of strings...) of objects.
- crdrost 4y agoFor the record I do agree that the schema data Screen = Screen { previous :: Maybe Screen, ... } is inferior to what they eventually had, data ScreenHistory = ScreenHistory { previous10 :: [Screen], current :: Screen } -- Screen itself is nonrecursive But I do think that storing JSON as a string was a weird antipattern in the first case, smacking of a premature optimization.