code review

The Last Line Effect

Copy-Paste

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".

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

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

На конференции 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".
  • 开发人员
  • C/C++
  • error
  • PVS-Studio
  • code review
  • copy-paste
  • 订阅 code review