PVS-Studio | Posts: articles

2 min read Original article ↗

^ != <<

In some languages, the '^' operator can be used for exponentiation, but in other popular development stacks, it operates as the exclusive OR (XOR) operator. Today, we'll discuss how this...

...

Comments that outlived errors

Evgenii Feklin

Many static analyzers enable suppressing individual warnings directly in code via special comments. Over time, the number of such comments in projects increases. Some of them lose their relevance...

...

Brave new C#

Guest

Next month, another version of our beloved programming language is set to arrive. Nice reason to grab a cup of coffee and dwell on what is wrong with modern versions of C#, isn't it?

...

How far does lookup see in C++?

Aleksandra Uvarova

In C++, it's good practice to place functions next to the types they operate on. To apply this approach correctly, we need to understand how name lookup mechanisms work and spot where functions...

...

Code generation for algorithms in Java

Konstantin Volohovsky

Devs often use "magic code" to solve tree problems on LeetCode. However, enterprise code requires readability and maintainability for years. What shall we do when a task is so large that...

...

Exploring OpenAPI Generator via static analysis

Vladislav Bogdanov

Would you like to see some errors and suspicious fragments in Java code? We found lost increments, empty regular expressions, strange string sanitization, and more in an open-source project...

...