HN user

wub

15 karma
Posts0
Comments2
View on HN
No posts found.

> They put the arrow where it was increased for a short duration, but then immediately after this the temperature is lowered considerably.

I don't think ~80 miles could be considered a "short duration".

Evil Ruby 14 years ago

I can't help but feel that even the "good" example makes things unnecessarily complicated for the sake of saving one line of code.

    # original
    start_date, end_date = ["24 Dec 2011", "23 Jan 2013"].map {|d| Date.parse(d) }

    # better
    start = Date.parse("24 Dec 2011")
    end = Date.parse("23 Jan 2013")