Fork me on GitHub
#clojure-uk
<
2018-07-31
>
guy07:07:03

morning!

thomas07:07:55

morning 😼

firthh08:07:29

Anyone else going to the London Dojo tonight?

maleghast08:07:38

Morning 🙂

maleghast08:07:06

@firthh - Sad to say I can't make it; I made other plans before I realised it was this week 😞

firthh08:07:43

I only realised it was on yesterday and somehow didn’t already have plans

danm08:07:13

Morning morning

agile_geek08:07:08

@maleghast @firthh need to open a google hangouts session and remote pairing then I’d go to!

alexlynham09:07:59

morrrrrrrrning

maleghast11:07:15

Anyone in here Yada-compliant..? I am wondering if it's possible to define a Yada Resource with "optional" querystring parameters..?

agile_geek12:07:01

Don’t tout being Yada compliant or Juxt might start selling certification!

maleghast15:07:01

If they did, I would be "in" 😉

dominicm11:07:32

yup, schema has optional keys

dominicm11:07:37

(s/optional-key)

dominicm11:07:46

or just don't use schema at all, that's valid too.

maleghast11:07:27

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

dominicm11:07:51

@maleghast then you can just pull the query params out of the ctx I think

maleghast11:07:39

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?

dominicm11:07:51

yes 😛

maleghast11:07:07

Oh I see! Cool, thx 🙂

dominicm13:07:33

I don't particularly want to. (Not that I have any particular say)

dominicm13:07:51

- 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

dominicm13:07:59

Basically a security problem

dominicm13:07:11

also spec doesn't have coercion, which is handy when taking strings off the internet, and you want numbers, for example.

dominicm13:07:03

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.

alexlynham14:07:27

btw, who's going to clojurex?

alexlynham14:07:40

last day for early birds so thinking of splashing out

alexlynham14:07:50

I'm tight or I'd have done it before now

Rachel Westmacott14:07:52

I’m going.

thomas15:07:12

I am planning on going to clojureX

3Jane15:07:11

I’m going, got an extremely early one

3Jane15:07:04

can’t buy this sort of stuff in the middle of summer when you want to be spending on holidays XD

maleghast15:07:29

I'll be at ClojureX 🙂

danm15:07:48

I will not. Tell me all about it!

jasonbell16:07:38

@maleghast - You're not there to assassinate me are you?

jasonbell16:07:43

Asking for a friend...

maleghast16:07:21

@jasonbell Nah! I don’t do that... any more ;-)

😵 12
dominicm16:07:49

that's what an assassin would say

alexlynham18:07:51

Okay I'm gonna get a ticket when I get home then

alexlynham22:07:59

s/get a ticket/register to be a volunteer/