best practice on trumped up benefits of flexibility and malleability. If your code never knows exactly who it's talking to, it can talk to anyone! …Hogwash.”
@billing_repo = BillingRepository.new end def process(message) @billing_repo.email_receipts model = @factory.parse(message) @repository.save(model) end end
= factory @billing_repo = billing_repo end def process(message) @billing_repo.email_receipts model = @factory.parse(message) @repository.save(model) end end