---

Telling Time with Ruby

“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:

7.days.ago

“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

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis