Hacker News new | past | comments | ask | show | jobs | submit login

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.




And then you have charts like this 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)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: