«« Next » « Previous
«« Next » « Previous

Link Details

That link needs one more vote. Make it yours! Login and vote now.
Link 47830 thumbnail

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.
  • 12
  • 4
  • 1353
  • 491

Comments

Add your comment
User 213471 avatar

johnprout replied ago:

0 votes Vote down Vote up Reply

Some silly unmaintainable code - don't ever write that for production, please.

User 201118 avatar

Lars Pohlmann replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.