Settings

Theme

Testing Isn't Everything (2019)

arp242.net

2 points by dryarzeg 2 days ago · 3 comments

Reader

pfdietz 2 days ago

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.

  • dryarzegOP 2 days ago

    I guess that author mentions it explicitly:

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

    > tests are important

    • pfdietz a day ago

      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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection