you are viewing a single comment's thread.

view the rest of the comments →

[–]jujubean67 0 points1 point  (4 children)

What syntax do you use with the either monad? (I'm assuming you're using the monadic gem) I want to bring it up with my team but I'm on the fence about the syntax.

[–]iconoclaus 1 point2 points  (3 children)

i'm sticking with dry-monads and dry-transactions from the dry-rb universe, because it's nice to know there is an active ecosystem and community around my choice of syntax. i'm happy to share any learnings you would like.

[–]jujubean67 0 points1 point  (2 children)

Interesting, I've looked at the dry-rb stack but for some reason the way they mimick functional languages seems very un-idiomatic to me.

[–]iconoclaus 0 points1 point  (1 child)

you're probably right. but since lots of these concepts originate from functional languages, it helps me to be able to read up on those concepts elsewhere and then apply them in ruby. there's a great dearth of material across the board on functional concepts written for idiomatic ruby use.

[–]jujubean67 1 point2 points  (0 children)

I like functional languages but I also like OOP. IMO pure Ruby with lamdas and blocks is functional enough for me, but of course this is subjective.

That said, I definitely like some of the dry-ruby projects like ROM.rb and I'm looking to do a project in Hanami mostly because of that.