These are chat archives for ramda/ramda

18th
May 2018
Rolf Strijdhorst
@rolfst
May 18 2018 08:43
Can anyone tell me the name of the interface notation Ramda is using? I forgot it and I need to study it's working more. More complex constructs seem to keep evading me
Rolf Strijdhorst
@rolfst
May 18 2018 09:07
@tommmyy :+1:
Mike Lambert
@lax4mike
May 18 2018 14:08
i very often need isNotNil, i wonder if this should be built in to ramda?
i end up putting const isNotNil = R.compliment(R.isNil); all over the place
Stephen Niemans
@stephenniemans
May 18 2018 14:27
@lax4mike the Ramda Adjunct companion library has a great list of predicates like that!
Mike Lambert
@lax4mike
May 18 2018 14:28
hmm, how big is that?
do i want to import 2 libraries?
Stephen Niemans
@stephenniemans
May 18 2018 14:28
Not dismissing your question, but I found it the other day and I think I'll want to use it for stuff that needs a lot of validations
Mike Lambert
@lax4mike
May 18 2018 14:29
i should look into tree shaking, then it wouldn't matter how big it is
but i think that requires you import { all, the, functions } from "ramda"
Stephen Niemans
@stephenniemans
May 18 2018 15:48
Hahaha yeah that's a bit of a pity, although I believe they're slowly improving that process. Also some IDEs let you auto import and optimize imports on save so that saves a lot of trouble as well
And of course on some projects it's not a huge deal, like if you do a load of node js or mobile app stuff those few extra KB don't really make or break it I suppose
Or you can make a custom import in a utility file with the stuff you use most and then export those as a trimmed down pseudo ramda