News for hackers. Stuff that matters.
Re:Clojure's missing piece (2017) by islon on Monday December 03, 2018 @07:44AM (#18588279)
How do you avoid having complicated, nested data structures in your software if your business is complicated?
Re:Clojure's missing piece (2017) by augustl on Monday December 03, 2018 @08:20AM (#18588520)
One answer to this is to have your raw "source" data stored as flat as possible (Datascript, RDF, ...). Then you generate nested structures (you could call these "views") as much as you want from this data. That way, you don't have to write to nested data, because that's the pain point imo.
Re:Clojure's missing piece (2017) by fnordsensei on Monday December 03, 2018 @08:37AM (#18588613)
If you control the source, that's fine. I get externally generated documents containing an annoying mishmash of XML representing metadata and XML representing rendering logic. Sometimes the same stuff even represents both of these things.

I take them apart to something flatter as early as possible, but the complexity is nevertheless unavoidable.

(changing the upstream representation would involve changing an entire industry as well as a standard)

Re:Clojure's missing piece (2017) by korijn on Monday December 03, 2018 @08:07AM (#18588449)
By simplifying your business :) although that's not always realistic.