That link needs one more vote. Make it yours! Login and vote now.
By bloid
via trak3r.blogspot.com
Published: Oct 15 2007 / 06:13
I was code-reviewing a cohort's contribution the other day and I came across a line of Ruby that had me completely perplexed:
Hash[*Advertisement.aspects.map {|aspect| [aspect,advertisements.send("count_#{aspect}")]}.flatten]
That's quite a mouthful. If you know what that does, go ahead and stop reading now, 'cause the rest of this post is just self flagellation.
Comments
johnprout replied ago:
Some silly unmaintainable code - don't ever write that for production, please.
Lars Pohlmann replied ago:
Some guy trying to show off. We had enough of these in the perl-days.
Code that is hard to understand is not genius, it's bad.
Voters For This Link (12)
Voters Against This Link (4)