Monthly Archives: May 2015

Using Null Object Pattern in Rails to improve code quality

Originally posted on Learning shall never stop..!!!:
If you have not read my previous post I wrote about Service classes, I would suggest to read that first as it is in continuation to the previous post. This is the link…

Posted in General | Leave a comment

Don’t test your code

I spoke at Agile India 2015 in March. Excellent conference but I was a quite disappointed that the videos are not publicly published. So, I decided to write about it here in detail. The slide deck has been published at on … Continue reading

Posted in Conferences | Tagged , , , | Leave a comment

Uniqueness Gotcha!!!

Originally posted on Happy Coding !!!:
♦ The Problem Consider the following relation where poll is having many options and each option of the poll must be having a unique description, class Poll < ActiveRecord::Base has_many :options accepts_nested_attributes_for :options end class…

Posted in General | Leave a comment