Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 05:40
    wpzero starred dry-rb/dry-monads
  • 05:30
    dilcom opened #375
  • 02:18
    johnmaxwell edited #115
  • 02:18
    johnmaxwell edited #115
  • Dec 08 23:10
    johnmaxwell labeled #115
  • Dec 08 23:10
    johnmaxwell opened #115
  • Dec 07 14:03

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 10:01
    Travis dry-rb/dry-view (master) errored (636)
  • Dec 07 09:58
    Travis dry-rb/dry-view (master) errored (635)
  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

  • Dec 07 09:56

    dry-bot on master

    [devtools] config sync (compare)

Piotr Solnica
@solnic
@flash-gordon so I started working on ASTs for dry-types here dry-rb/dry-types#178
Nikita Shilnikov
@flash-gordon
@solnic yeah, I see what you're doing there 😀
Piotr Solnica
@solnic
@flash-gordon this was my intention from the beginning, I’m pretty sure reducing types into simpler forms will be a great feature useful in many places
the only thing that worries me a little is that constructors can’t be represented with pure data :(
as in, if you use an anonymous proc instead of a method-based proc, you can’t represent it as data
in case of class methods it’d be possible, ie [:constructor, [User, :new]]
which can be easily compiled as klass, meth = node + klass.method(meth) :)
Nikita Shilnikov
@flash-gordon
@solnic well, you can register procs as methods with generated names
Piotr Solnica
@solnic
hmmm you mean capture them in #constructor and register somewhere?
Nikita Shilnikov
@flash-gordon
yep
Piotr Solnica
@solnic
Worth exploring this idea
Maciej Mensfeld
@mensfeld
guys where's configurable 0.6.0?
I can't bundle it :/
Maciej Mensfeld
@mensfeld
ok nvmd - something with bundler cahce
Nikita Shilnikov
@flash-gordon
@mensfeld it seems @AMHOL has bumped version number only a few minutes ago
Maciej Mensfeld
@mensfeld
@flash-gordon yeah ;) I was just 2 fast and hit a rubygems server that was out of sync
Pablo Herrero
@pabloh
why does Dry::Validation::Result is not a monad as well?
Nikita Shilnikov
@flash-gordon
@pabloh because dry-monads is not a required dependecy of dry-validation
Pablo Herrero
@pabloh
@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
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
hehe, sorry for been a bit of touch... :P
Nikita Shilnikov
@flash-gordon
ah, no worries :)
Pablo Herrero
@pabloh
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
@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
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
heh, I meant like hanami and trailblazer ;)
Pablo Herrero
@pabloh
oh, you meant transitive dependencies, sorry...
Well, good to know I can use them that easily if I want
Nikita Shilnikov
@flash-gordon
@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
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
yes, dry-v is the most advanced gem from dry-*s atm
Calinoiu Alexandru Nicolae
@alexandru-calinoiu
Hi, at a 24 hackaton trying to spin a up a quick and fast rest api, is there a how-to get started for dry-web?
Calinoiu Alexandru Nicolae
@alexandru-calinoiu
Usintg https://github.com/dry-rb/dry-web-roda for now, hope it does the trick.
Oskar Szrajer
@gotar
@alexandru-calinoiu yeah, but it's a lot of new stuff and concepts if you never use dry-* before
if you have any problems or questions just ask
@alexandru-calinoiu Plus this may helps: https://github.com/dry-rb/dry-web-blog much simpler exmaple
for simle API
oh ok it's not api exmaple any more ;] but maybe will still help