Using Static Analysis Online [Compiler Explorer]

Do you want to try a static analyzer but you don’t feel like installing it and figuring the things out? That’s OK 😊

This video will tell you how to do it online and most importantly for free. By the way, this website allows you to check if your code compiles 😉

Code from video.

Have fun watching this video and coding 🙂

Enums in C#: hidden pitfalls

C# has low barriers to entry and forgives a lot. Seriously, you may not understand how things work under the hood but still write code and remain easy-going about this. Though you still have to deal with different nuances over time. Today, we’ll look at one of such subtle aspects – handling enumerations.

Continue reading

How to Use Mass Suppression in PVS-Studio for Java?

Have you just run the analyzer and now you have no idea what to do with all this abundance of warnings? 📜 Nothing to worry about – we made a special mechanism that can help you deal with them 💪🏻

In this video, you’ll learn about the inner workings of mass warnings suppression mechanism in PVS-Studio for Java. If you’re interested in other programming language, follow the links bellow 🙂

Mass Suppression in PVS-Studio for C++

Mass Suppression in PVS-Studio for C#

Have fun watching this video and coding 🙂

How WCF shoots itself in the foot with TraceSource

We don’t often get the chance to write something on parallel programming issues. This time we “got lucky”. The TraceEvent standard method has some implementation peculiarities. They resulted in an error with multiple threads blocking. So we’d like to warn users about this nuance and cover this interesting case from our users support practice. Why was our support involved? Keep reading to find out. Enjoy the reading!

Continue reading

Unity projects analysis: the solution file has two projects named “UnityEngine.UI”

While PVS-Studio analyses a Unity project, one may stumble upon such an error: Error was encountered while trying to open solution file ‘…’: The solution file has two projects named “UnityEngine.UI”. This note discusses the reasons for this error and how to eliminate it.

Continue reading

How to NOT Drown in the Static Analyzer’s First Report? [Mass Suppression] 

Have you ever used a statistical analysis tool on a new large project? If you have, you must know that the first scan may produce over 1 thousand and in some cases over 10 thousand warnings. 📑 Luckily, you can control which warnings you want to work with. For example, you can limit the analysis to your project’s newest code. 👶🏻

This video describes one of the ways to do so. We call this approach mass suppression, and it is especially helpful for large projects.

Have fun watching this video and coding 🙂

6 Specific Ways to Find Programming Mentors

Finding experienced mentors and peers might be the most important thing you can do if you want to become a great programmer. They will tell you what books to read, explain the pros and cons of different languages, demystify anything that seems to you like “magic”, help you when you get in a jam, work alongside you to produce great things people want, and challenge you to reach new heights.


Continue reading

The First Bug on Mars

In 1971, the USSR delivered the first planetary rovers on skis to Mars, whose task was to puncture the surface with a rod (housing a dynamic penetrometer and a radiation densitometer) to see if Mars was solid or liquid dusty. The first probe crashed on November 27; the second soft-landed on December 2 but didn’t manage to get out of the “shell” of the lander, so that attempt didn’t count.

image1

Continue reading