06 Apr '12, 7am

WAT

Let's start with wtf!? Published almost 5 years ago UPDATE : Check Ticket 8818 Welcome to my new blog :) Now over to rails.. So you’ve been told about using cute shortcuts for enumerator like Post.find(:all).map(&:title) – you feel great using it, don’t you ?? And you laughed at those who didn’t understand how &:sym worked and continued to use .map ( |shit| shit.stupid } syntaxt! You were made feel geeky indirectly. I was there :-) But those days are “over” and it’s time to go back home! I’d let benchmark speak for me.. require ' benchmark ' class Symbol def to_proc Proc .new { |*args| args.shift.__send__(self , *args) } end end n = 10000 s = Struct .new :id messages = [] n.times { messages << s.new(:id => rand(n)) } Benchmark .bm do |x| # Integer x.report { n.times { messages.map{|m| m.id} } } x.report { n.times { messages.map(&:id ) } } end # $ ruby perform.rb # user sys...

Full article: http://m.onkey.org/let-s-start-with-wtf

Tweets

Domain Shane: Let’s Change Things Up: I Will Pa...

domainshane.com 04 Apr '12, 5pm

Let’s Change Things Up: I Will Pay $25 For The Worst Domain You Own By ShaneCultra - April 4, 2012 - 16 Comments I’m going...

Start writing Ruby apps with #OrientDB: #nosql ...

rubygems.org 06 Apr '12, 2pm

This gem uses the OrientDB Network Binary Protocol to provide connectivity to an OrientDB Server

Let's Go Innovate! by SG Geek Girls | e27

Let's Go Innovate! by SG Geek Girls | e27

e27.sg 06 Apr '12, 1am

Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic. Powered by WP Gre...

How to Stop Over Optimizing and Start Creating for SEO - Whiteboard Friday

How to Stop Over Optimizing and Start Creating ...

seomoz.org 06 Apr '12, 4am

When you're just starting out, I believe there is a huge dividing line between the beginner SEO and the intermediate SEO, ...

Chevrolet 2013 Spark mini car to start at $12,995

greencarcongress.com 05 Apr '12, 2pm

Chevrolet 2013 Spark mini car to start at $12,995 5 April 2012 When the mini car goes on sale later this year, the Chevrol...

‘Duduk means sit, Bantah means protest’, so let...

blog.limkitsiang.com 05 Apr '12, 11am

— May Chee Chook Ying The Malaysian Insider Apr 05, 2012 APRIL 5 — I must apologise for such a weird title for my write-up...

@ABCDEFAH hi. erm you dont need to go school tmr. just go here. :D

@ABCDEFAH hi. erm you dont need to go school tm...

np.edu.sg 11 Apr '12, 5am

Your name may start with your surname or your given name. When you get to the spreadsheet containing the name list, look f...

22 Big Reasons To Start A Small Business While Still In School

22 Big Reasons To Start A Small Business While ...

youngupstarts.com 04 Apr '12, 6am

You’re young, strapped for cash, and totally busy with school . It sounds like a terrible time to start a business, but re...