This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-27
Channels
- # adventofcode (1)
- # announcements (4)
- # beginners (120)
- # calva (5)
- # cider (12)
- # clara (3)
- # cljdoc (48)
- # cljs-dev (33)
- # cljsrn (4)
- # clojure (124)
- # clojure-dev (43)
- # clojure-europe (2)
- # clojure-italy (168)
- # clojure-nl (2)
- # clojure-spec (7)
- # clojure-uk (79)
- # clojurescript (50)
- # core-logic (6)
- # cursive (12)
- # datascript (1)
- # datomic (8)
- # devcards (2)
- # emacs (5)
- # events (2)
- # figwheel-main (6)
- # fulcro (18)
- # graphql (42)
- # hyperfiddle (3)
- # jobs (1)
- # luminus (2)
- # nrepl (5)
- # off-topic (59)
- # onyx (5)
- # parinfer (2)
- # pathom (10)
- # pedestal (2)
- # portkey (3)
- # re-frame (24)
- # reagent (6)
- # reitit (54)
- # remote-jobs (1)
- # ring (5)
- # shadow-cljs (75)
- # spacemacs (35)
- # sql (22)
- # tools-deps (16)
- # unrepl (10)
a couple quick takeaways on my beginner experience with pedestal (not with clojure, just pedestal)
- I found it hard to debug constraints. When my request 404'ed because a query param constraint in a parent route (using terse syntax) didn’t match for a child route that doesn’t use that query param I was confused. I understand how they work now. I ended up pretty printing the routes in full form to see the constraints on the route and it clicked.
- as mentioned previously, the :io.pedestal.http/host
key defaulting to something more restrictive than 0.0.0.0
was surprising coming from having used jetty before with compojure
- It took me a bit to find a doc that said defroutes
is preferred over expand-routes
except in the case where you need to dynamically create routes
- I’m not entirely sure what the scheme, host, port etc. optional args in the route syntax do and how they interact with the server config
- it wasn’t immediately obvious to me that you can use a ring handler as an interceptor without explicitly using interceptor
or the map form
Thanks for the summary, I had a very similar experience to yours. I've been using Clojure for a while, but recent user of Pedestal.