Anton Tretyakov's profile photo

Anton Tretyakov

Featured in:

Articles

  • 3 weeks ago | pvs-studio.com | Andrey Karpov |Dmitry Sviridkin |Anton Tretyakov

    Get ready for code smells, classic errors, and typos when checking the TDengine project using PVS-Studio. Developers could've prevented many of them if they had carefully designed the code in the first place, kept the logic simple, and avoided macros. Let's break down some of these errors and figure out how refactoring can help eliminate them completely. This time, we'll talk about writing code using the copy-paste method.

  • 1 month ago | pvs-studio.com | Andrey Karpov |Dmitry Sviridkin |Anton Tretyakov

    Get ready for code smells, classic errors, and typos when checking the TDengine project using PVS-Studio. Much of this is avoidable if we design code carefully from the beginning, keep the logic simple, and stay away from macros. Let's break down some code snippets and find ways to refactor them to leave bugs no room there. In the previous post, we had a good feed of the sausage code. In this article, I'll use a new example to show why macros are dangerous and why I dislike them.

  • 1 month ago | pvs-studio.com | Andrey Karpov |Dmitry Sviridkin |Anton Tretyakov

    The analysis of the TDengine project code using PVS-Studio reveals classic errors and typos. Developers could've avoided many of them if they had carefully designed the code in the first place, kept the logic simple, and avoided macros. Let's take a look at these errors and figure out how refactoring can help eliminate them completely. Sausage code This meme is the easiest way to illustrate what I mean. Unfortunately, Java programmers aren't the only ones writing "sausage code".

  • Jan 22, 2025 | pvs-studio.com | Andrey Karpov |Dmitry Sviridkin |Anton Tretyakov

    Your attention is invited to the final part of an e-book on undefined behavior. This is not a textbook, as it's intended for those who are already familiar with C++ programming. It's a kind of C++ programmer's guide to undefined behavior and to its most secret and exotic corners. The book was written by Dmitry Sviridkin and edited by Andrey Karpov. Why is it the chapter 12 of 11?

  • Dec 28, 2024 | pvs-studio.com | Andrey Karpov |Dmitry Sviridkin |Anton Tretyakov

    Every year, we witness the same drama: bugs wreak havoc on our code as if asserting their dominance. But today, the tide turns—it's time for judgment. Let's dive into the most intriguing bugs we've uncovered this year. All rise! Over the past twelve months, our team has scrutinized countless errors from open-source C and C++ projects. Heated debates and discussions unfolded in comments to defend each bug's innocence.

Contact details

Socials & Sites

Try JournoFinder For Free

Search and contact over 1M+ journalist profiles, browse 100M+ articles, and unlock powerful PR tools.

Start Your 7-Day Free Trial →