3 ms·
I guess it is easier, dev wise, to round a WPM-calculation than do fuzzy duration logic. I wouldn't stress too much about it
by madeofpalk 4y ago
I guess it is easier, dev wise, to round a WPM-calculation than do fuzzy duration logic. I wouldn't stress too much about it
- iso1631 4y agoif (mins < 4) return "a couple of minutes" if (mins < 8) return "five minutes" if (mins < 12) return "ten minutes" if (mins < 18) return "quarter of an hour" if (mins < 25) return "20 minutes" if (mins < 40) return "half an hour" if (mins < 50) return "45 minutes" if (mins < 70) return "about an hour" if (mins < 100) return "hour and a half" if (mins < 250) return "a couple of hours"
- Karellen 4y agoWouldn't it be more useful to overestimate, rather than underestimate? Also, is the "couple of hours" estimate being off by more than a factor of 2 a typo, or are you just trolling at that point?
- madeofpalk 4y agoor just use the minutes value.