Fork me on GitHub
#clojure-uk
<
2016-09-12
>
otfrom08:09:02

I think I've almost got a clojure.spec based ETL workflow worked out

martintrojer09:09:58

its slow, don;t forget.

martintrojer09:09:18

but, you're IO bound in most cases so doesn't matter

otfrom09:09:06

martintrojer: latest alpha seems to have improved the speed quite a bit

otfrom09:09:22

as fast or faster that plumatic/schema

mccraigmccraig09:09:32

is that using spec for pre/post step validations and coercions @otfrom ?

martintrojer09:09:41

schema also very slow

martintrojer09:09:58

runtime contracts will never be 'fast'

otfrom09:09:01

mccraigmccraig: using it for coercing strings

otfrom09:09:21

martintrojer: yeah, I get that bit

otfrom09:09:27

having spent the weekend trying to think in types (or contract type-like substitutes), I'm quite glad that I don't have to all the time. ;-)

otfrom09:09:03

using it for generative testing and coercion of strings at the edges (which is what I spend most of my time doing when I'm coding anyway)

rickmoynihan14:09:02

otfrom: cool - would be interested to hear more about how it works

otfrom14:09:21

rickmoynihan: well, as soon as I figure it all out. ;-)

otfrom14:09:33

I'm having some trouble integrating it into a nice testing workflow

otfrom14:09:01

I want to do C-c C-t n but that doesn't look like it will work (I want to use deftest basically)

otfrom14:09:34

my problem is mostly likely PEBCAK and I'm waiting for someone to tell me I'm an idiot and what the right macro/fuction to use is

minimal14:09:32

there were some test reporting multimethods floating around

minimal14:09:21

hmm it’s pretty old

otfrom14:09:48

minimal: that looks more or less correct though. I think I'll give that a try. thx

minimal14:09:21

think you’ll need to use check instead of check-var

rickmoynihan14:09:45

@otfrom: yeah I know what you mean... figuring out how exactly to incorporate with tests etc is something I've struggled with a bit

otfrom14:09:12

clojure.core likes inferior-lisp and this works well with that. I don't think this has really be worked into cider yet and part of that is probably down to it still being alpha. I can understand that bbatsov doesn't want to chase the API. I know I don't want to either. ;-)

elise_huard15:09:03

hullo. What do people use to securely store or encrypt RSA private keys with clojure? I vaguely remember using keystores in my java days a long time ago. Is this a thing?