This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-13
Channels
- # admin-announcements (296)
- # beginners (19)
- # boot (40)
- # cider (77)
- # clojure (139)
- # clojure-australia (2)
- # clojure-bangladesh (6)
- # clojure-dev (19)
- # clojure-japan (25)
- # clojure-russia (23)
- # clojure-sg (1)
- # clojure-uk (4)
- # clojurescript (131)
- # datomic (41)
- # editors (42)
- # ldnclj (35)
- # off-topic (11)
- # reagent (10)
Good morning.
Anybody using schema? https://github.com/Prismatic/schema
pupeno: i'm using schema
mccraigmccraig: what do you think of it? nice? useful? stable?
pupeno: all of the above ... 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
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.
Good to know. I’ll check schema before I start writing production code.
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)
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
aaahhh
I’m in! I’m always looking for opportunities to use my wax seal.