clojuredesign-podcast

Discussions around the Functional Design in Clojure podcast - https://clojuredesign.club/
2020-03-15T01:18:03.024800Z

Really enjoyed this episode, I would love to hear more about web design. I have always thought that the ideal mental model for client server was a the client is a cache. what need is easy to model the full interaction between syncing that data. E.g what to show what the user it's loading, load size, etc... I didn't know about sente, how have people used that? Could you just have something read the datomic transaction log and stream updates to the client?

nate 2020-03-15T21:02:05.025800Z

@drewverlee glad to hear you enjoyed the episode. What parts of web design would you like to hear more about?

nate 2020-03-15T21:04:55.028400Z

I totally agree that clients should bear more of the computational burden than they do in most apps. I only used Sente briefly in a toy app, but my idea was to use it to stream updates to the client caches in the browser. I bet you could do the same with datomic if you had a worthy bit of receiving code in the browser. Might be too much data, the hard part is deciding what data should be on the client. Oh, and access control. Heh.

2020-03-15T21:13:57.031300Z

Personally hearing more about reactive options is fascinating. I feel like one reason it's hard is because our mental models and tools don't let us isolate issues. Code about queries and networks is all mixed up.

genekim 2020-03-15T22:47:18.035700Z

Another amazing episode, @nate !! Was thunderstruck by your description of Sente. At times, it feels like all I do is write boilerplate code between cljs/re-frame and clj/ring. And deal with unexpected ring exception handling, CORS inconsistencies across chrome/safari... I’m ready to try Sente out!!! Thank you!!!

nate 2020-03-15T22:48:11.036300Z

@genekim that's great, glad to hear it. Please let me know how it goes for you, I'm very curious

genekim 2020-03-15T22:52:21.040500Z

Haha. Even with only one endpoint (taking :op and :args, to reduce boilerplate), it still left me feeling “there has GOT to be a better way!!” Eager to research this!! @nate Will definitely keep you posted. For your amusement: reading the Sente docs left me scratching my head, which is what I think you were alluding to. But I’m motivated to keep going!!

nate 2020-03-15T22:54:33.041300Z

haha, yeah. I remember it being a bit tricky to get going, but once it is, it's a wonder