BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 47830 thumbnail
User 111696 avatar

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
  • 2550
  • 15

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.