Fork me on GitHub
#ldnclj
<
2015-07-13
>
pupeno06:07:27

Good morning.

thomas07:07:33

Good morning 'veryone

thomas08:07:10

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

mccraigmccraig08:07:12

pupeno: i'm using schema

thomas08:07:27

easier to to use then core.typed I think

pupeno08:07:35

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

mccraigmccraig08:07:58

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

mccraigmccraig08:07:06

to validate om component properties

mccraigmccraig08:07:24

to validate backend component configuration

mccraigmccraig08:07:45

and to validate api arguments

mccraigmccraig08:07:49

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

pupeno08:07:21

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

pupeno08:07:01

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).

mccraigmccraig08:07:05

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

mccraigmccraig08:07:40

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

pupeno08:07:14

Interesting. Thanks.

thomas08:07:22

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

pupeno08:07:42

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

korny08:07:14

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)

korny08:07:30

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

korny08:07:44

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...

xlevus09:07:14

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

aleksanders09:07:34

@xlevus: there is already one

xlevus09:07:51

Snail-mail

xlevus09:07:57

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

pupeno09:07:25

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