Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
Posts: #Knowledge

Posts: # Knowledge

Apr 06 2021
Hidden reefs in string pool, or another reason to think twice before interning instances of string class in C#
Ilya Gainulin
As software developers, we always want our software to work properly. We'll do everything to improve the software quality. To find the best solution, we are ready to use parallelizing or applying...
...
Mar 04 2021
What is yield and how does it work in C#?
Nikita Lipilin
C# capabilities keep expanding from year to year. New features enrich software development. However, their advantages may not always be so obvious. For example, the good old yield. To...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
Feb 12 2021
Should we initialize an out parameter before a method returns?
Sergey Vasiliev
Surely every C# developer has used out-parameters. It seems that everything is extremely simple and clear with them. But is it really so? For a kickoff, let's start with a self-test...
...
Oct 30 2020
Check how you remember nullable value types. Let's peek under the hood
Sergey Vasiliev
Recently nullable reference types have become trendy. Meanwhile, the good old nullable value types are still here and actively used. How well do you remember the nuances of working with them...
...
Nullable Reference will not protect you, and here is the proof
Nikolay Mironov
Have you ever wanted to get rid of the problem with dereferencing null references? If so, using Nullable Reference types is not your choice. Do you want to know why? This will be our topic...
...
How to introduce a static code analyzer in a legacy project and not to discourage the team
Andrey Karpov
It is easy to try a static code analyzer. But it requires skills to introduce it in the development of an old large project. If the approach is incorrect, the analyzer can add work, slow...
...
A note of caution about using PVS-Studio on godbolt.org (Compiler Explorer)
Andrey Karpov
We have added an option allowing you to experiment with the PVS-Studio static analyzer on the godbolt.org (Compiler Explorer) website. It supports analysis of C and C++ code. We believe this to be...
...
May 10 2020
C++ is faster and safer than Rust: benchmarked by Yandex
Roman
Spoiler: C++ isn't faster or slower — that's not the point, actually. This article continues our good tradition of busting myths about the Rust language shared by some big-name Russian companies.
...
Mar 10 2020
Detecting the incorrect double-checked locking using the V3054 diagnostic
Andrey Karpov
The PVS-Studio analyzer can detect incorrect variants of the "double-checked locking" pattern implementation in C# programs. Sometimes users are not aware of the danger in the code indicated by...
...
Zero, one, two, Freddy's coming for you
Andrey Karpov
This post continues the series of articles, which can well be called "horrors for developers". This time it will also touch upon a typical pattern of typos related to the usage of...
...
View more Pagination arrow previous
Showing: - of 152