Hacker News new | ask | show | jobs
by riffraff 4480 days ago
I wish people would stop doing this.

It generally means down the road I find myself wanting to use two different configurations and everything explodes in my face because the author of the gem thought there would always be exactly one configuration.

What is wrong with

     MegaLotto.new do |lotto|
       lotto.drawing_count = 10
     end
and just wrapping it in a "default_megalotto" factory method?