ARGH, Verizon's overzealous spamfilter has been eating my replies outbound.
First, on Wed, Nov 30, 2011 at 15:14, Aaron D. Gifford
If we're golfing, here's my amateur golf attempt: *chuckle*
s=0;'2011'.chars{|x|s+=x.to_i};s
And another four chars gone! Well done! Just goes to show, using
typical Ruby idioms doesn't always yield (no pun intended) the
shortest code, nor the fastest.
(Are we allowing semicolons?)
Sure, why not. I'll even allow carriage returns, counting them as one char.
Second, on Wed, Nov 30, 2011 at 15:42, Admin Tensor
路路路
<astounding@gmail.com> wrote:
<admin@tensor.heliohost.org> wrote:
If the number of digits is less than five, how about this one for Ruby
Golf"2011".sum(48)%48
Cuuuuute. If we restrict it to years we've had so far (CE), okay.
-Dave
--
LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence).
Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)