Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Monday October 23 2017, @06:48AM   Printer-friendly
from the MY-code-is-perfect! dept.

I am really astonished by the capabilities of static code analysis. The tool surprised me the other day as it turned out to be smarter and more attentive than I am. I found I must be careful when working with static analysis tools. Code reported by the analyzer often looks fine and I'm tempted to discard the warning as a false positive and move on. I fell into this trap and failed to spot bugs...Even I, one of the PVS-Studio developers.

So, appreciate and use static code analyzers! They will help save your time and nerve cells.

[Ed note: I debated running this story as there was an element of self-promotion (aka Bin Spam), but the submitter has been with the site for a while and has posted informative comments. Besides, I know there have been far too many times when I've seen a compiler complain about some section of my code and I'm thinking there is nothing wrong with it — and then I, finally, see my mistake. Anyone have samples of code where you just knew the compiler or static analyzer was wrong, only to find out otherwise? --martyb]


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 0) by Anonymous Coward on Monday October 23 2017, @04:14PM (3 children)

    by Anonymous Coward on Monday October 23 2017, @04:14PM (#586386)

    What's a "tuner"?

  • (Score: 3, Touché) by maxwell demon on Monday October 23 2017, @11:24PM

    by maxwell demon (1608) on Monday October 23 2017, @11:24PM (#586644) Journal

    A misspelled big fish. :-)

    --
    The Tao of math: The numbers you can count are not the real numbers.
  • (Score: 0) by Anonymous Coward on Tuesday October 24 2017, @02:32AM (1 child)

    by Anonymous Coward on Tuesday October 24 2017, @02:32AM (#586691)

    My god! Was radio that long ago?

    But I was mistaken. The discriminator (demodulator) is after the tuner.

    • (Score: 0) by Anonymous Coward on Tuesday October 24 2017, @04:34AM

      by Anonymous Coward on Tuesday October 24 2017, @04:34AM (#586718)

      And you blame Millennials, when truly, Grandpa, it is your own memory that fails you! Do you remember when blacks knew their place? Do you remember when America was a White nation, with a White President, and a White House with a White Dog? And now all we have is an Orange President, with some ex-Commie Bimbo first Lady, and no dog! Why does the president not have a dog? So, yeah, Nazis are totally cool now, until someone threatens to "punch them in the face!" [youtu.be]

      Take it off, white boy, take it off!