ldnclj

Find us on #clojure-uk
pupeno 2015-07-13T06:45:27.001871Z

Good morning.

thomas 2015-07-13T07:59:33.001872Z

Good morning 'veryone

pupeno 2015-07-13T08:09:03.001873Z

Anybody using schema? https://github.com/Prismatic/schema

thomas 2015-07-13T08:11:10.001875Z

@pupeno: I had a play with it and it is a rather nice lib IMHO

mccraigmccraig 2015-07-13T08:11:12.001876Z

pupeno: i'm using schema

thomas 2015-07-13T08:11:27.001877Z

easier to to use then core.typed I think

pupeno 2015-07-13T08:11:35.001878Z

mccraigmccraig: what do you think of it? nice? useful? stable?

mccraigmccraig 2015-07-13T08:11:58.001879Z

pupeno: all of the above :simple_smile: ... i'm using it in several places :

mccraigmccraig 2015-07-13T08:12:06.001880Z

to validate om component properties

mccraigmccraig 2015-07-13T08:12:24.001881Z

to validate backend component configuration

mccraigmccraig 2015-07-13T08:12:45.001882Z

and to validate api arguments

mccraigmccraig 2015-07-13T08:13:49.001883Z

it's made change/refactoring easier and increased confidence, and i haven't (yet) found any bugs in schema itself

acron 2015-07-13T08:14:09.001884Z

morning

pupeno 2015-07-13T08:14:21.001885Z

mccraigmccraig: that sounds good. I’ll give it a try then.

pupeno 2015-07-13T08:15:01.001886Z

mccraigmccraig: any reason to use it instead of core.typed? (I’m completely unfamiliar with either and I’m completely at home with dynamic languages anyway).

mccraigmccraig 2015-07-13T08:16:05.001887Z

pupeno: several reasons : core.typed doesn't work on cljs, core.typed is (well, looks to be, i haven't had a serious attempt) hard to retrofit

mccraigmccraig 2015-07-13T08:18:40.001888Z

plus, core.typed isn't really oriented towards validity checking things like http post bodies, whereas schema is a good fit for that

pupeno 2015-07-13T08:19:14.001889Z

Interesting. Thanks.

jamiei 2015-07-13T08:19:52.001890Z

Morning

thomas 2015-07-13T08:41:22.001891Z

@pupeno: my experiences are the same as Craig's

pupeno 2015-07-13T08:43:42.001892Z

Good to know. I’ll check schema before I start writing production code.

korny 2015-07-13T08:44:33.001893Z

moaning

korny 2015-07-13T08:45:14.001894Z

I’ve used schema before - it’s ace. Be aware that if you use it a lot for complex nested types, over and over again, there might be a performance hit (as would make sense)

korny 2015-07-13T08:45:30.001895Z

- whereas core.typed is at compile time so no overhead.

korny 2015-07-13T08:46:44.001896Z

I prefer schema, myself, but did have to diagnose a problem where some naive code was using schema on a very messy structure, and then repeating that on every row of a 15000-row query...

xlevus 2015-07-13T09:19:14.001898Z

So, who wants to start a Ldnclj snail-mailinglist with me? I figured along with gitter, irc, slack, irl and a messageboard we didn't have enough channels to communicate on. :P

2015-07-13T09:27:34.001899Z

@xlevus: there is already one

xlevus 2015-07-13T09:27:38.001900Z

ahaha

2015-07-13T09:27:46.001901Z

<mailto:london-clojurians@googlegroups.com|london-clojurians@googlegroups.com>

xlevus 2015-07-13T09:27:50.001902Z

nono.

xlevus 2015-07-13T09:27:51.001903Z

Snail-mail

2015-07-13T09:27:55.001904Z

aaahhh

2015-07-13T09:27:56.001905Z

😄

xlevus 2015-07-13T09:27:57.001906Z

as in, letters, and stamps, and bad service.

pupeno 2015-07-13T09:28:25.001907Z

I’m in! I’m always looking for opportunities to use my wax seal.