Playing around with some ideas
More playing around with some ideas for what a generic data layer would look like. I have basically a facade that sits on top of a cache and network layer. Assuming that the network layer handles all of the difficult part of calling back when things change and listening for changes then this should just work. The network bit is configurable (as is the cache). So I would in principle just call this good and implement a network layer that does polling as the stupidest thing that would work. Some interesting design questions, but mostly this is just a giant file where I am playing around still