These are chat archives for dry-rb/chat

17th
Feb 2017
Maciej Mensfeld
@mensfeld
Feb 17 2017 14:21
guys where's configurable 0.6.0?
I can't bundle it :/
Maciej Mensfeld
@mensfeld
Feb 17 2017 14:23
ok nvmd - something with bundler cahce
Nikita Shilnikov
@flash-gordon
Feb 17 2017 14:26
@mensfeld it seems @AMHOL has bumped version number only a few minutes ago
Maciej Mensfeld
@mensfeld
Feb 17 2017 14:27
@flash-gordon yeah ;) I was just 2 fast and hit a rubygems server that was out of sync
Pablo Herrero
@pabloh
Feb 17 2017 21:30
why does Dry::Validation::Result is not a monad as well?
Nikita Shilnikov
@flash-gordon
Feb 17 2017 21:31
@pabloh because dry-monads is not a required dependecy of dry-validation
Pablo Herrero
@pabloh
Feb 17 2017 21:32
@flash-gordon, I think it would we useful to have it that way
is it possible to make it a soft dependency at least?
have you consider it, I mean?
Nikita Shilnikov
@flash-gordon
Feb 17 2017 21:33
you can activate dry-monads integration with Dry::Validation.load_extensions(:monads), then you'll be able to call .to_either on Result :sparkles:
so it has been considered :)
Pablo Herrero
@pabloh
Feb 17 2017 21:34
hehe, sorry for been a bit of touch... :P
Nikita Shilnikov
@flash-gordon
Feb 17 2017 21:34
ah, no worries :)
Pablo Herrero
@pabloh
Feb 17 2017 21:34
I didn't know there was a load_extensions system either
@flash-gordon , OTH, is there a reason you make it optional?
for instance, people usually don't understand or don't want to use monads?
or just to have one fewer dependency?
Nikita Shilnikov
@flash-gordon
Feb 17 2017 21:36
@pabloh because we want a user to control the dependencies
there are some libs already which depends on dry-v and we care :)
Pablo Herrero
@pabloh
Feb 17 2017 21:37
yup, like types and struct, i saw that
but maybe the use of monads should be encouraged here, since we are following a FP style
Nikita Shilnikov
@flash-gordon
Feb 17 2017 21:38
heh, I meant like hanami and trailblazer ;)
Pablo Herrero
@pabloh
Feb 17 2017 21:39
oh, you meant transitive dependencies, sorry...
Well, good to know I can use them that easily if I want
Nikita Shilnikov
@flash-gordon
Feb 17 2017 21:40
@pabloh we don't push monads too hard to not be known as weird geekers in ruby community ... more than we are
just kidding :)
Pablo Herrero
@pabloh
Feb 17 2017 21:41
hahahaha
now that you mention it I'm a bit surprised how often I find people using dy-rb o rom-rb, at least indirectly, these days...
mostly for form objects and validations, but it's a start
Nikita Shilnikov
@flash-gordon
Feb 17 2017 21:43
yes, dry-v is the most advanced gem from dry-*s atm