Better HN
topnewbestaskshowjobs
Log inSign up

wub

15 karma · joined Jan 10, 2013 (13y ago) · 2 submissions

Submissions

comment 13y ago · link · parent

> 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".

comment 13y ago · link · parent

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")