This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-22
Channels
- # architecture (1)
- # aws (3)
- # beginners (78)
- # boot (33)
- # cider (49)
- # cljs-dev (3)
- # clojure (82)
- # clojure-berlin (2)
- # clojure-dusseldorf (14)
- # clojure-gamedev (75)
- # clojure-italy (15)
- # clojure-nl (2)
- # clojure-poland (9)
- # clojure-russia (1)
- # clojure-spec (11)
- # clojure-uk (91)
- # clojurescript (17)
- # core-async (2)
- # cursive (1)
- # data-science (3)
- # datascript (34)
- # datomic (13)
- # docs (2)
- # duct (32)
- # emacs (8)
- # fulcro (95)
- # instaparse (17)
- # jobs (2)
- # jobs-discuss (1)
- # jobs-rus (4)
- # leiningen (1)
- # luminus (1)
- # lumo (4)
- # mount (1)
- # nrepl (1)
- # off-topic (98)
- # onyx (13)
- # portkey (12)
- # re-frame (10)
- # reagent (11)
- # remote-jobs (4)
- # rum (3)
- # shadow-cljs (34)
- # specter (7)
- # sql (1)
- # tools-deps (8)
I don’t understand the need for req
and resp
, their responsability
specs don’t transform
ser
(resp. deser
) transforms to (resp. from) conforming value (eg take care of lifting collapsed lists from HAL) — these transformations are local
req
takes whatever ser
on the root shape produced and creates a request (it may imply moving things around, out of the body to a header oa a query param) — these transformations are global
resp
is the mirror of req
: it takes a response, cobbles every piece of value together in a single value to pass to deser
I understand that ser
is local but req
is only protocol dependent, why creating req-*
forr every input ?
I am feeling dumb ^^
(map #(str "ser-" %) inputs)
vs (map #(str "req<-" %) input-roots)
One ser
per shape used as (part of) input but only req<-
for root input shapes (aka messages)
Never assume that I’m right just because I speak confidently.
Ok, I’ll digest that tomorrow and try to do a POC this week