Not slow per se, and unlikely issue in real world, but there was a page was linked off the dry-* website, where someone had done some perf tests... and shown that transactions were n factor slower than pure monads.. but then you get all the other benefits... hooks, notifications etc.
Personally not that useful to me anymore for what I wanna do...
M::List::Validated[M::Success(1), M::Failure("boom 2")].typed(M::Result).traverse => Failure(List<Result>["boom 1", "boom2"])
Hey folks, we've been testing Zulip as a Gitter replacement for the last few days. So far it feels really great and we'd like more people to sign up and check it out. We did not decide yet if we want to switch but it's likely that we will, because of this please sign up and let's chat there whether you like it or not.
You can sign up right here: https://dry-rb.zulipchat.com/register/
If you haven't heard about Zulip, it's an OSS communication platform. Something between a chat and email, with a unique communication model based on streams and topics. The company behind it was acquired by Dropbox, but they open sourced the project back in 2015. Its development is very active and it looks promising in general.
Check out
Why Zulip
here: https://zulipchat.com/why-zulip/
you could try Zulip @shawn42 ^
@/all hey, after 2 weeks of testing we decided to switch to Zulip and we are saying "good bye" to Gitter. From April 1st (no kidding) we'll be hanging out in Zulip and stop paying attention to this Gitter chat. You can join our Zulip organization here: https://dry-rb.zulipchat.com/register/
ps. rom-rb gitter chat will move too
require 'spec_helper'
module CRUD
class Update
include Dry::Transaction
step :validate
step :persist
def validate(input)
Success(input.to_s + model_class.to_s)
end
def persist(input)
Success(input.to_s + model_class.to_s)
end
end
class ORMModel1
end
class Update1 < Update
def model_class
ORMModel1
end
end
end
describe 'ParamOverride' do
context 'update1' do
subject { CRUD::Update1.new.call params }
let(:params) { {a:1,b:2} }
context 'negative cases' do
specify 'inheritance just does not work' do
expect(subject).to be_success
expect(subject.value!).to_not eq('{}ORMModel1')
end
end
end
end
@/all hey, after 2 weeks of testing we decided to switch to Zulip and we are saying "good bye" to Gitter. From April 1st (no kidding) we'll be hanging out in Zulip and stop paying attention to this Gitter chat. You can join our Zulip organization here: https://dry-rb.zulipchat.com/register/
ps. rom-rb gitter chat will move too