Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on MicroGems: five minute RubyGems with Gists.
However, I will say that I personally prefer to stay away from gems like this, as they add indirection, and make projects confusing for new devs.
I would say that
bang :calculate_score => :score
def calculate_score!; update_attributes!(:score => calculate_score) end
There are no comments on this comment yet.
However, I will say that I personally prefer to stay away from gems like this, as they add indirection, and make projects confusing for new devs.
I would say that
is clearly worse than Sure, it is longer, but any ruby / rails dev will understand it instantly, and I'll take a few more chars for less indirection.