Pull to refresh
312.83
PVS-Studio
Static Code Analysis for C, C++, C# and Java
Show first

Review of mini-book «60 terrible tips for a C++ developer»

Level of difficulty Easy
Reading time 6 min
Views 1.2K

I wrote a small e-book about terrible tips for C++ developers. Actually, it describes bad programming practices and explains why it's better to avoid them. However, every chapter of this mini-book starts with a terrible tip — just for fun.


60 terrible tips for a C++ developer


By the way, these tips may seem artificial but believe me, they are based on the real experience. In other words, the described terrible tips occur in developers' lives — that's why it's worth discussing them. First of all, this book will be useful for junior developers. But more skilled C++ developers can also find interesting and useful tips.


Even though it's a mini-book, it clearly does not fit into the Habr format. Too many words. So, I decided to write here the review. Here is the link to find the full version of the mini-book: 60 terrible tips for a C++ developer.


If you still hesitate whether to read it or not, below you will find a list of terrible tips that will be discussed in the mini-book.


View the terrible tips:

Read more →
Total votes 10: ↑7 and ↓3 +4
Comments 3

A tale of how PVS-Studio reimagined the bug

Reading time 4 min
Views 1K

You all know our mascot — a unicorn — many people grew fond of him! However, PVS-Studio has a supporting character who is also the antagonist of our product — a bug! Well, a bug is not omnipresent, indestructible evil. It's more like an everyday or a work-related trouble. In this article, you'll learn how we created a new character, and why he looks like a ladybug. Oh, and if you wonder why the hell he has a belly button — keep reading!

Read more
Total votes 1: ↑1 and ↓0 +1
Comments 1

How PVS-Studio prevents rash code changes, example N4

Reading time 2 min
Views 1.1K

Blender, PVS-Studio, std::clamp
If you regularly use a static code analyzer, you can save time on guessing why the new code doesn't work as planned. Let's look at another interesting error — the function broke during refactoring, and no one noticed that. No one — except for PVS-Studio that can automatically scan the project and email the report to us.

Read more →
Total votes 2: ↑1 and ↓1 0
Comments 0

Why does my app send network requests when I open an SVG file?

Reading time 8 min
Views 2.1K

0923_SVG_XXE_ru/image1.png


You decided to make an app that works with SVG. Encouraged by the enthusiasm, you collected libraries and successfully made the application. But suddenly you find that the app is sending strange network requests. And data is leaking from the host-machine. How so?

Read more →
Total votes 3: ↑3 and ↓0 +3
Comments 0

Visual Studio 2022 — stylish and fresh. How PVS-Studio supported VS2022

Reading time 7 min
Views 1.3K

Seems like Microsoft has just announced Visual Studio 2022. And it already came out! For us at PVS-Studio, this meant only one thing — we must support this IDE in the next PVS-Studio release. Almost everything went smoothly. However, there were some hitches that we're going to discuss today.

Read more
Rating 0
Comments 0

Vulnerabilities due to XML files processing: XXE in C# applications in theory and in practice

Reading time 16 min
Views 1.2K

How can simple XML files processing turn into a security weakness? How can a blog deployed on your machine cause a data leak? Today we'll find answers to these questions, learn what XXE is and how it looks like.


0918_XXE_BlogEngine/image1.png

Read more →
Total votes 1: ↑1 and ↓0 +1
Comments 0

Stop losing clients! Or how a developer can test a website, by the example of PVS-Studio. Part 1

Reading time 15 min
Views 927

A website with bugs could be a real pain in the neck for business. Just one 404 or 500 error could end up costing an obscene amount of money for the company and hurt a good reputation. But there is a way to avoid this issue: the website testing. That's sort of what this article is about. After reading this article, you will learn how to test code in Django, create your "own website tester" and much more. Welcome to the article.

Read more
Rating 0
Comments 2

Re-checking PascalABC.NET

Reading time 8 min
Views 550

Welcome all fans of clean code! Today we analyze the PascalABC.NET project. In 2017, we already found errors in this project. We used two static analysis tools (more precisely, plugins for SonarQube): SonarC# and PVS-Studio. Today, we analyze this project with the latest version of the PVS-Studio analyzer for C#. Let's see what errors we can find today, especially when our analyzer has become more advanced and got new features: it can find more exquisite errors and potential vulnerabilities.


0912_PascalABCNET_2/image1.png

Read more →
Total votes 3: ↑2 and ↓1 +1
Comments 0

How many marketing specialists do you need to create one video?

Reading time 8 min
Views 846

0911_Videomarketing_en/image1.png


Video is one of the simplest and most attractive formats for information perception. Especially now, in the era of TikTok, Instagram and YouTube. It is not surprising that marketing specialists often choose video format for business promotion.

Read more →
Total votes 4: ↑3 and ↓1 +2
Comments 3

How PVS-Studio prevents rash code changes, example N2

Reading time 2 min
Views 570

Blender bug, PVS-Studio
When developers do make mistakes, it's often accidental or because the developers are in a hurry. These errors often make their way into small edits to the code. Let's review one of these cases: a developer fixes an error and introduces a new one simultaneously.

Read more →
Total votes 4: ↑2 and ↓2 0
Comments 0

Information

Website
pvs-studio.com
Registered
Founded
2008
Employees
31–50 employees