Articles tagged with  rails

Introducing dry-validation

December 07, 2015 by Piotr Solnica

We started experimenting with a new validation library under dry-rb 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...

Cutting Corners or Why Rails May Kill Ruby

June 06, 2015 by Piotr Solnica

Today I’m tired and frustrated. And it’s not the first time that I have those negative feelings. Typically I just complain on twitter, lose some followers, wait a bit to calm down and move on.

But today I need to vent and convert my negative emotions...

TDD Is Fun

April 23, 2014 by Piotr Solnica

Today DHH published a blog post about TDD being dead (to him at least). It’s really not that surprising since from what I know (please correct me if I’m wrong) David’s experience is mostly based on building web apps with Rails. I get that, I really...

TDD and ActiveRecord in Rails

January 06, 2014 by Piotr Solnica

I don’t have exact numbers but I believe TDD isn’t really popular amongst rails developers. This shouldn’t be a surprise given that the two of the most complex elements in the rails stack, models and controllers, are very convoluted concepts and are...

Single Responsibility Principle on Rails Explained

July 09, 2012 by Piotr Solnica

A few weeks back we had a small drama about SRP. There were some smart comments, some stupid ones and a few funny jokes even, like that for example:

If I remember correctly it all started with...

Yes, You Should Write Controller Tests!

February 02, 2012 by Piotr Solnica

It really surprises me that there are people arguing that writing controller tests doesn’t make sense. Probably the most common argument is that actions are covered in acceptence tests along with checking if views are properly rendered. Right? Right...

Making ActiveRecord Models Thin

August 01, 2011 by Piotr Solnica

“Skinny Controller, Fat Model” is a well known best practice in Ruby community. Everybody seems to agree with it and follows it. It’s pretty clear what a skinny controller is. The question is what is a fat model and what should we do if it gets too...

Why JavaScript helpers in rails are evil

October 30, 2007 by Piotr Solnica

Ruby on Rails gained so much attention and appreciation mostly because it simplifies the development process of AJAX-driven applications. When I started to learn Rails I was already very familiar with other MVC-based frameworks, and actually I’ve created...