Fork me on GitHub
#yada
<
2017-07-05
>
matan09:07:52

I really like yada so far

matan09:07:40

Yada startup isn't very quick is it. I wonder, how do the leiningen folks typically address that for quick development turnaround?

malcolmsparks09:07:27

I use Stuart Sierra's reloaded workflow. Typically dev turnaround is subsecond

nha09:07:39

@matan I use reloaded.repl myself ( https://github.com/weavejester/reloaded.repl ), but there may be another setup in edge ( https://github.com/juxt/edge ). Yes, reloading is pretty quick (in fact one of the reasons I switched from pedestal to yada)

malcolmsparks09:07:48

Edge uses weavejester's reloaded.repl

malcolmsparks09:07:16

I am a bit confused by the first one

malcolmsparks09:07:37

Yada handlers and Ring handlers are not complimentary

malcolmsparks09:07:16

A yada handler is a Ring handler, almost. The only difference is the async response

nha09:07:12

Do you mean that this should work?

(yada/resource
  {:methods
    {:get
      {:produces …
       :response (fn [ctx] (my-ring-handler ctx))}}})

malcolmsparks09:07:24

Not quite. That would render as a map. You would need to merge the ring-handler response with the (:response ctx)

nha09:07:21

Ah right (don’t have a yada repl handy). That makes sense, so this is probably a non-issue