Good morning.
Good morning 'veryone
Anybody using schema? https://github.com/Prismatic/schema
@pupeno: I had a play with it and it is a rather nice lib IMHO
pupeno: i'm using schema
easier to to use then core.typed I think
mccraigmccraig: what do you think of it? nice? useful? stable?
pupeno: all of the above :simple_smile: ... i'm using it in several places :
to validate om component properties
to validate backend component configuration
and to validate api arguments
it's made change/refactoring easier and increased confidence, and i haven't (yet) found any bugs in schema itself
morning
mccraigmccraig: that sounds good. I’ll give it a try then.
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).
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
plus, core.typed isn't really oriented towards validity checking things like http post bodies, whereas schema is a good fit for that
Interesting. Thanks.
Morning
@pupeno: my experiences are the same as Craig's
Good to know. I’ll check schema before I start writing production code.
moaning
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)
- whereas core.typed is at compile time so no overhead.
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...
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
@xlevus: there is already one
ahaha
<mailto:london-clojurians@googlegroups.com|london-clojurians@googlegroups.com>
nono.
Snail-mail
aaahhh
😄
as in, letters, and stamps, and bad service.
I’m in! I’m always looking for opportunities to use my wax seal.