Blog

Invalid Object Is An Anti-Pattern

December 28, 2015 by Piotr Solnica

The idea of an object that validates its own state has been made very popular by Rails’ ActiveRecord. We can see this pattern in many places, not only in ORM libraries but in many other gems whenever some sort of validation is needed.

Have you ever...


Introducing dry-validation

December 07, 2015 by Piotr Solnica

We started experimenting with a new validation library under dryrb organization a couple of months ago, and last month I released the first version of dry-validation. Since then I worked hard on improving it and adding support for i18n.

Today, I released...


Ditch Your ORM

September 18, 2015 by Piotr Solnica

I’ve been promoting a functional approach in Ruby for a while now and even though it includes many different techniques and patterns, there’s this one idea, one fundamental idea that changes everything - immutability.

But what does it even mean in...


Encapsulating Business Transactions With Transflow

August 17, 2015 by Piotr Solnica

It’s a known fact that when you deal with a big problem it’s good to split it into smaller problems, solve them in isolation using separate components and use an integration layer to combine them into a single unit. Unfortunately it’s easier said than...


Importing Data With ROM and Transproc

July 15, 2015 by Piotr Solnica

Importing data into a database can be a complicated task. This process can be quite painful as you need to deal with data transformation, filling in missing information, specifying validation rules, handling errors and so on. Without proper tools to...