News for hackers. Stuff that matters.
Re:Ask HN: Will front end development ever move away from Ja... by Illniyar on Sunday March 12, 2017 @02:06PM (#13852044)
We write tests.

Really, I find compile time checks to be moot when you have fast running and good unit tests.

Re:Ask HN: Will front end development ever move away from Ja... by douche on Sunday March 12, 2017 @02:18PM (#13852128)
Yeah, that whole suite of tests that you don't have to write yourself (or, more likely, you were never going to write, if you had to do it yourself...) that runs automatically every time called a compiler.
Re:Ask HN: Will front end development ever move away from Ja... by Illniyar on Sunday March 12, 2017 @04:18PM (#13852829)
That's misleading. You don't write tests to check types. You write the same tests you would with a typed language. There is no extra work.

A by product of testing your logic is that it will fail if there is a type cast problem.