This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-31
Channels
- # beginners (153)
- # cider (30)
- # cljs-dev (8)
- # cljsrn (8)
- # clojure (105)
- # clojure-dev (6)
- # clojure-dusseldorf (5)
- # clojure-italy (6)
- # clojure-nl (3)
- # clojure-russia (34)
- # clojure-spec (23)
- # clojure-uk (54)
- # clojurescript (104)
- # core-matrix (3)
- # crypto (1)
- # cursive (17)
- # datomic (90)
- # duct (13)
- # editors (5)
- # emacs (1)
- # events (1)
- # figwheel-main (9)
- # fulcro (54)
- # hoplon (18)
- # hyperfiddle (2)
- # jobs-rus (1)
- # lein-figwheel (5)
- # leiningen (3)
- # luminus (52)
- # mount (6)
- # off-topic (22)
- # other-languages (3)
- # parinfer (7)
- # powderkeg (3)
- # re-frame (52)
- # reagent (58)
- # rum (4)
- # shadow-cljs (49)
- # spacemacs (12)
- # sql (13)
- # tools-deps (2)
- # yada (1)
Morning.
morning!
Bore da
@firthh - Sad to say I can't make it; I made other plans before I realised it was this week 😞
@maleghast @firthh need to open a google hangouts session and remote pairing then I’d go to!
morrrrrrrrning
Anyone in here Yada-compliant..? I am wondering if it's possible to define a Yada Resource with "optional" querystring parameters..?
Don’t tout being Yada compliant or Juxt might start selling certification!
My current Yada resources don't use schema - though I would like to "go there" at some point soon if I can find the experimenting time
@maleghast then you can just pull the query params out of the ctx I think
so I can use:
(get-in ctx [:parameters :query :page] 0)
to get a querystring parameter called page's value or return 0 if no key :page , yeah?reasons?
- Spec is designed around open maps, forms should be closed maps - Specs are potentially unsafe, you get loads of them from various libraries, and I can leverage the open map concept to trigger them with malicious input to cause a DOS
also spec doesn't have coercion, which is handy when taking strings off the internet, and you want numbers, for example.
If I ever got time, I'd like to specify yada's use of schema and provide an extension mechanism for any custom validation. I wouldn't supply a spec implementation based on the current form of spec though, because I think it violates several principles of spec.
thanks!
btw, who's going to clojurex?
last day for early birds so thinking of splashing out
I'm tight or I'd have done it before now
I’m going.
can’t buy this sort of stuff in the middle of summer when you want to be spending on holidays XD
@maleghast - You're not there to assassinate me are you?
Okay I'm gonna get a ticket when I get home then
s/get a ticket/register to be a volunteer/