Re:The Gilectomy – How's It Going [video]
by prewett on Sunday May 28, 2017 @08:02PM
(#14436660)
Well, yeah, if you have 100% test coverage it doesn't matter. The thing is, with a dynamic typed language you have to have 100% test coverage to have any idea of whether the thing will even run. One misspelled variable will take down your server (something that frequently happened to me in development). With a static typed language all you need to worry about is logic errors. Yeah, you should have tests (and with a server, there's really no reason not to), but the reality is that tests are a pain to maintain, and writing the test often takes as long as writing the code. So, along with documentation, the chances of 100% test coverage is minimal unless you are in control of the project. With a statically typed language, at least you know somebody didn't make a misspelling in an infrequent code path and doom your server from the start.
[ Parent
| on HN ]
Re:The Gilectomy – How's It Going [video]
by crdoconnor on Monday May 29, 2017 @12:46PM
(#14439990)
Except you don't need 100% and it's not even a good idea to optimize for SLOC coverage. Doing TDD for 90+% of stories and reported bugs is sufficient.
Linting also catches variable misspellings.