code review

The Last Line Effect


I have studied numbers of errors caused by using the Copy-Paste method and can assure you that programmers most often tend to make mistakes in the last fragment of a homogeneous code block. I have never seen this phenomenon described in books on programming, so I decided to write about it myself. I called it the "last line effect".

90 errors in open-source projects

There are actually 91 errors described in the article, but number 90 looks nicer in the title. The article is intended for C/C++ programmers, but developers working with other languages may also find it interesting.
  • C/C++
  • errors
  • bugs
  • PVS-Studio
  • code review
  • static code analyzer
  • Security Community
  • Open Source
  • Parallel Computing
  • Скринкаст: статический анализ Си++ кода

     статический анализ Си++ кода

    На конференции ADD 2011 я выступал с докладом "Статический анализ Си++ кода". Благодаря старанию Стаса Фомина появился замечательный скринкаст (видео + презентация), который я предлагаю вашему вниманию.

    Cases when a static code analyzer may help you

    Cases when a static code analyzer may help you

    Author: Andrey Karpov

    Date: 24.12.2010

    The static code analysis method is the method of searching for places in program text that are highly probable to contain errors. Programmers use special tools called static code analyzers for this purpose. Having got a list of suspicious code lines, a programmer reviews the corresponding code and fixes errors detected.

    Consequences of using the Copy-Paste method in C++ programming and how to deal with it

    Of course, it has been known for a long time that using Copy-Paste in programming is a bad thing. But let's try to investigate this problem closely instead of limiting ourselves to just saying "do not copy the code".
  • Developers
  • C/C++
  • error
  • PVS-Studio
  • code review
  • copy-paste
  • Subscribe to code review