You are viewing a single thread.
View all comments View context
-14 points

Warnings and errors are negatives not positive. So if it generates a warning that is OK, it’s a false negative.

permalink
report
parent
reply
20 points

Just so you know, if your doctor calls and tells you that your HIV test is positive, you probably shouldn’t run out and celebrate.

permalink
report
parent
reply
-5 points

That’s why I said false negative. The medical test is testing for the presence of a disease. So if they find the disease is considered a positive test (it found what it was looking for). For static analysis on code, its the opposite. Its testing if your code is free of issues that it can detect. If it finds no issues, then the test was positive. If does find issues, the test failed and each issue is a negative that contributed to the test failing.

permalink
report
parent
reply
12 points

I’m not debating. It is not a matter of opinion. I’m doing you the courtesy of informing you how the entire rest of the world uses the term.

If action A looks for thing X, and it finds thing X, then the test is positive. If action A fails to find thing X, then the test is negative.

If action A claims to find thing X, but later confirmation determines that thing X is not really there, then this situation is called “false positive”.

If action A claims fails to find thing X, but later confirmation determines that thing X is actually there, then this situation is called “false negative”.

That thing X may subjectively be considered an unwanted outcome has **nothing ** to do with the terms used.

permalink
report
parent
reply
2 points

You could say “A static analysis tool is testing for the for the presence of defects” or “a medical test is testing if your body is free of diseases that it can detect” to change how you’re looking at either of the tests in the previous comment.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 9.5K

    Monthly active users

  • 861

    Posts

  • 33K

    Comments