4 ms·
If you're an experienced C++ coder, I'd skip this article. While it's well structured, with real-world examples, it's very basic. I'm not an excellent C++ code
by quizotic 10y ago
If you're an experienced C++ coder, I'd skip this article.
While it's well structured, with real-world examples, it's very basic. I'm not an excellent C++ coder by any stretch of the imagination. I make lots of mistakes. But not these. The article is fairly thorough and long, so if you're experienced you'll invest non-trivial time for little or no reward.
- dleslie 10y agoThe mistakes mentioned include those made in mature projects maintained by good people. We all make mistakes; and it's oftenworthwhile to review what we take for granted that we know.
- pjmlp 10y agoGiven the errors found by PVS-Studio on actual relevant FOSS projects, I would say it is a good introduction for looking into such examples, for those interested in writing proper code.
- AndreyKarpov 10y agoThe fact that these are simple errors doesn't mean that these are not errors. We should understand tat they are especially noticeable when there is a small code fragment. In the code of a real application such errors can live for years. By the way, I recommend playing: http://q.viva64.com/ http://q.viva64.com/