Mon, 12 Mar 2007
daemon_percentages.rb and Ruby Autovivification
Both Jim Weirich and
Ben Summers were kind enough to
email me about my Daemon
Logging Percentages and Playing with Ruby Idioms post. They sent
me an explanation on how to do the hash assignment in a way I find much
nicer, so with no more delays I present - Option 4:
tally = Hash.new(0)
tally[daemon] += 1
It really is that simple - and I still missed it by a mile. I've updated the script to use this and I wanted to say thank you for the pointer, so thank you both.
Like this post? - Digg Me! | Add to del.icio.us! | reddit this!
Posted: 2007/03/12 21:06 | /ruby | Permanent link to this entry | This entry and same date
Outlaw - Short Review
Tonight I saw Outlaw. It starts out
showing how people feel let down and abandoned by the law and the fact it
seems to treat criminals better than the victims. It's a great idea, the
topic is perfectly timed and it's only spoiled by a shoddy execution (no
pun intended).
It soon turns in to a badly plotted gang film that is amazingly one sided - the outlaws are never really developed so their point is lost, it is full of cliches and pretty dull. 3/10 (and those points are for the concept).
Like this post? - Digg Me! | Add to del.icio.us! | reddit this!
Posted: 2007/03/12 20:59 | /movies | Permanent link to this entry | This entry and same date

