Skip to content

Testing Isn't Everything (2019)

arp242.net
2 pointsdryarzeg3 comments
On HN

Comments

Wouldn't that leading example of dynamic language code that calls a nonexistent function be perfectly handled by tests that covered that call? Yes, if your tests have poor coverage they won't test code that isn't covered. So don't do that if you're using a dynamic language. Lisp people have known this for decades.

I guess that author mentions it explicitly:

In dynamic languages like Ruby and Python tests are important for a different reason
tests are important

Tests are important anyway; I think the point is that if you adequately test your code for more difficult bugs, you'll get coverage of simple compiler-detectable bugs for free.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.