3 ms·
11degC and night time is shorts weather?!?! Looking at the comments I suspect they have a Boolean issue in the code somewhere
by simonbarker87 5y ago
11degC and night time is shorts weather?!?!
Looking at the comments I suspect they have a Boolean issue in the code somewhere
- speedgoose 5y agoIt looks correct : https://github.com/skorotkiewicz/pants-or-shorts/blob/ffb6959f7c1d1e8a8072e9ae83295c3a4fc14a39/src/components/Widget.jsx#L27 https://github.com/skorotkiewicz/pants-or-shorts/blob/ffb695... I think the author loves to wear pants whenever it’s not painful.
- zackbloom 5y agoFor the record, the 'Feels Like' temp usually takes wind speed into account. It's probably not necessary for the dev to include that factor manually. For me it showed 79F and sunny as 'pants weather' (my Feels Like temp is 87F), I'm not sure I fully endorse this algorithm.