Linux Today: Linux News On Internet Time.

Telling Time with Ruby

Feb 22, 2008, 05:30 (1 Talkback[s])
(Other stories by W. Jason Gilmore)

"Ask any Ruby developer what led them to embrace the language, and most will praise its 'beauty,' comparing Ruby's syntax to a eloquent poem or piece of art. Admittedly, this sort of aggrandization used to elicit a sneer from yours truly, although at that point I'd never actually looked into the language to determine what all of the fuss was about. That is, until one day a single line of Ruby code caught my attention while surfing online:


"Made possible through the Active Support gem, when executed, this line of code will return the date and time occuring exactly seven days prior to its execution..."

Complete Story

Related Stories: