A Most Peculiar Test Drive 13 years ago
> 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".
HN user
> 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".
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")