News for hackers. Stuff that matters.
Re:10 Ruby tricks to improve your code (or not) by MrBra on Monday March 30, 2015 @08:06PM (#9293504)
Point 5: using ||=

@total ||= (1..100000000).to_a.inject(:+)

How beautiful can Ruby syntax be?

Re:10 Ruby tricks to improve your code (or not) by yramagicman on Saturday March 28, 2015 @07:02PM (#9283118)
I'm getting a database error.
Re:10 Ruby tricks to improve your code (or not) by yami on Saturday March 28, 2015 @07:16PM (#9283160)
Sweet irony...
Re:10 Ruby tricks to improve your code (or not) by neikos on Saturday March 28, 2015 @08:30PM (#9283380)
Thought the same thing.
Re:10 Ruby tricks to improve your code (or not) by gankgu on Sunday March 29, 2015 @10:41AM (#9284952)
Good, thx