These are chat archives for dry-rb/chat

31st
Oct 2015
Piotr Solnica
@solnic
Oct 31 2015 15:34
@AMHOL I like dry-validation more :)
@AMHOL I was just looking at roda-flow again, it looks really cool I gotta say, it feels like a nice way of configuring your routing in a way that you simply point which objects are going to handle certain requests and what kind of input they need
Andy Holland
@AMHOL
Oct 31 2015 15:36
Cool, me too, will merge it soon
Piotr Solnica
@solnic
Oct 31 2015 15:36
I’m only worried that bigger apps will be hard to read due to nested blocks, I wonder how this could be improved
just slicing things into pieces would be enough
btw I’m gonna start working on the book in the upcoming week(s)
Andy Holland
@AMHOL
Oct 31 2015 15:37
Yeah, roda already has a plugin for multiple routing blocks :)
Piotr Solnica
@solnic
Oct 31 2015 15:37
so I’ll start putting together rodakase
first things I need to figure out is dir/file organization for it
Andy Holland
@AMHOL
Oct 31 2015 15:37
Cool, looking forward to seeing what you come up with
Have a look at that repo i gave you access too
Piotr Solnica
@solnic
Oct 31 2015 15:38
will do
Andy Holland
@AMHOL
Oct 31 2015 15:38
Cool :)
Piotr Solnica
@solnic
Oct 31 2015 15:39
I’m thinking about an auto-loading container, where it infers deps from a dir structure
my container has grown into lots of things but it’s Foo.new in 90% of the cases
Andy Holland
@AMHOL
Oct 31 2015 15:48
That would be interesting
If we had auto curry we could always new up and then just configure the arguments
Although i guess instantiation isnt always what you want
Piotr Solnica
@solnic
Oct 31 2015 16:15
@AMHOL I don’t like two things in roda-flow
idea of controllers and messing with response object
Andy Holland
@AMHOL
Oct 31 2015 16:24
Yeah, thats just in the example tbf, not actually part of the lib
Thats how i use ut tho
Piotr Solnica
@solnic
Oct 31 2015 16:26
my motivation is to decouple my app’s code from 1) persistence 2) http stuff
Andy Holland
@AMHOL
Oct 31 2015 16:26
Btw i used roda flow at work on a small, db hitting microservice, get 14ms response times
Piotr Solnica
@solnic
Oct 31 2015 16:26
nice!
Andy Holland
@AMHOL
Oct 31 2015 16:26
Perhaps i will see the light when i see your rodakase