3 ms·
> sometimes it _is_ worth unit testing other people's code, counter to the popular advice Relying on a library you don't have any tests for puts a lot of faith
by JonChesterfield 2y ago
> sometimes it _is_ worth unit testing other people's code, counter to the popular advice
Relying on a library you don't have any tests for puts a lot of faith in it working. Also in it continuing to behave as you expected when you change the version.
People have weird ideas about other people's code though. Something being found on GitHub may mean it doesn't need it be reviewed or even glanced through before putting it into production while code written in house is obsessed over.
- randomdata 2y agoPeople in the software industry are just weird in general, it seems. I regularly see the same type of behaviour around blog posts by random authors drawing "My, what a fantastic idea, we must try this!", even when it clearly isn't a good idea, but anyone with ideas internally are automatically discounted.
- stonemetal12 2y ago>Relying on a library you don't have any tests for puts a lot of faith in it working. To be fair Range is part of the language implementation. If you have no faith in the language implementation, why are you using it?