2 ms·
Yeah, let's only do defensive programming in the places where it will actually end up being needed. Brilliant idea! In the same vein, let's only write tests f
by pfdietz 2y ago
Yeah, let's only do defensive programming in the places where it will actually end up being needed. Brilliant idea! In the same vein, let's only write tests for the places where bugs will actually be.
This insight of yours cannot help but save on costs. Be sure to suggest it to management.
- matrss 2y agoI mean, if you really want to start every function with multiple `assert true == true` statements, feel free to do so. But I will question its usefulness. Do you have any particular example in mind that is not superfluous and really can not be exercised by the public API? I have a hard time thinking of any.
- matrss 2y ago> In the same vein, let's only write tests for the places where bugs will actually be. Sounds like a good idea, actually. These places being the entire surface of your code that is exposed to the real world. So not unlike what I have been suggesting.