This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-06
Channels
- # adventofcode (99)
- # announcements (9)
- # aws (3)
- # babashka (22)
- # beginners (90)
- # boot (2)
- # calva (22)
- # cider (8)
- # clj-kondo (14)
- # cljsrn (20)
- # clojure (24)
- # clojure-europe (4)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (83)
- # clojure-spain (1)
- # clojure-spec (46)
- # clojure-uk (43)
- # clojuredesign-podcast (70)
- # clojurescript (40)
- # cursive (25)
- # datomic (9)
- # duct (3)
- # emacs (14)
- # figwheel-main (2)
- # fulcro (61)
- # graalvm (8)
- # juxt (7)
- # kaocha (2)
- # leiningen (19)
- # luminus (5)
- # malli (58)
- # off-topic (4)
- # re-frame (11)
- # reitit (5)
- # rewrite-clj (3)
- # shadow-cljs (63)
- # sql (5)
- # testing (5)
- # tools-deps (26)
- # uncomplicate (2)
- # vim (4)
A question about Clip. I'm watching https://www.youtube.com/watch?v=-RaFcpNiYCo where Stuart Sierra talks a bit about his Component library.
There, he mentions that since all of the components are records, he can easily change any system definition to use it in different scenarios by just using data manipulation functions like merge
.
Integrant seem to have the same advantage as all of the arguments are just described as maps.
But in Clip, the arguments are passed right away. Of course, it's still a list that can be manipulated, but you can no longer do something like (update-in system [:component-a :param-b] inc)
.
Do you have any thoughts on this?
Yes, that works for the cases when you know beforehand what must be changed. Of course I may be wrong but after watching the video, I had the impression that Stuart was talking also about being able to just experiment with it. I'm not sure how useful such ability to experiment is, so I thought that maybe Clip doesn't include it for a reason.
I'd just replace the whole start key. The definitions should be simple enough to do that.