4 ms·
I'm going to choose the dynamic one. It's a risk and reward. You're giving away seconds or so on every line, for what might take a little debugging if one is e
by anon1m0us 8y ago
I'm going to choose the dynamic one.
It's a risk and reward. You're giving away seconds or so on every line, for what might take a little debugging if one is encountered.
I'd rather get the code written and the problem solved than make converting a string into a date the problem to be solved. There are plenty of problems figuring out if something is a date or not, but it's worth it.
- jimmy1 8y agoAnd then you have charts like this https://rollbar.com/blog/top-10-javascript-errors/ https://rollbar.com/blog/top-10-javascript-errors/ 9 out of the 10 most common JavaScript errors are around types, hence why such a large push to type JavaScript (TS, Flow, Elm, ReasonML)