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?

There are no comments on this comment yet.