Answers to the Most Common Questions We Get Regarding Spam
▻https://hownot2code.com/answers-to-the-most-common-questions-we-get-regarding-spam
These days, phone call and text spam has become an… Read more
C++/C# bad practices: learn how to make a good code by bad example
Answers to the Most Common Questions We Get Regarding Spam
▻https://hownot2code.com/answers-to-the-most-common-questions-we-get-regarding-spam
These days, phone call and text spam has become an… Read more
C/ C++
▻https://hownot2code.com/c-c
We will teach you all the basics of algorithmic thinking,… Read more
C# programming language can be called one of the most… Read more
Java
▻https://hownot2code.com/java
Our Java courses are engaging, extremely informative, and creative. Of… Read more
Barotrauma
▻https://hownot2code.com/2022/03/31/barotrauma
BUG OF THE MONTH | Unnecessary actions V3107 Identical expression ‘power’ to the left and to the right of compound assignment. RelayComponent.cs 150 The programmer is trying to add MaxPower, power and the difference between currPowerConsumption and power. The expanded version of the expression will look as follows: There’s no need to subtract the power variable from itself. The simplified code will look like … Continue reading Barotrauma
#Bugs_in_C#_projects #C#_bugs_of_the_month #Bug_of_the_month #C# #coding #cpp #Csharp #programming
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Unity
▻https://hownot2code.com/2022/04/26/unity-2
BUG OF THE MONTH | Assignment to Variable without Use V3008 The ‘rect.y’ variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 370, 366. ShaderVariantCollectionInspector.cs 370 The analyzer reports that the same variable — rect.y — is assigned a value twice and the code does not use the variable between the assignments. If we … Continue reading Unity
#Bugs_in_C#_projects #C#_bugs_of_the_month #Bug_of_the_month #bugs #C# #coding #Csharp #programming
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Bitwarden
▻https://hownot2code.com/2022/05/25/bitwarden
BUG OF THE MONTH | Erroneous postfix PVS-Studio warning: V3159 Modified value of the ‘retriedCount’ operand is not used after the postfix increment operation. FreshdeskController.cs 167 Look at the incrementation of the retriedCount variable. Weird — the postfix notation is used here. The current value of the variable is returned first, and only then this value is increased. Maybe … Continue reading Bitwarden
#Bugs_in_C#_projects #C#_bugs_of_the_month #Bug_of_the_month #bugs #C# #coding #Csharp #programming
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Ogre3D
▻https://hownot2code.com/2022/03/29/ogre3d
BUG OF THE MONTH | Incorrect Calculation V1064 The ‘1’ operand of integer division is less than the ‘100000’ one. The result will always be zero. OgreAutoParamDataSource.cpp 1094 Here the dummy vector should store floating point numbers. In this case, the constructor receives 4 arguments of the float type. However, there are integer values to the left and right of … Continue reading Ogre3D
#Bugs_in_C/C++_projects #C/C++_bugs_of_the_month #Bug_of_the_month #bugs #coding #cpp #programming
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Blend2D
▻https://hownot2code.com/2022/04/29/blend2d
BUG OF THE MONTH | An always-false expression V547 Expression ‘h == 0’ is always false. jpegcodec.cpp 252 In this code fragment, the result of the blMemReadU16uBE function call is assigned to the h variable. Then if the h == 0 check is true, we exit from the function’s body. During initialization impl->delayedHeight, the h variable has non-zero value. Thus, impl->delayedHeight is false.
#Bugs_in_C/C++_projects #C/C++_bugs_of_the_month #Bug_of_the_month #bugs #coding #cpp #programming
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
DuckStation
▻https://hownot2code.com/2022/05/27/duckstation
BUG OF THE MONTH | Free of Pointer not at Start of Buffer V726 An attempt to free memory containing the ‘wbuf’ array by using the ‘free’ function. This is incorrect as ‘wbuf’ was created on stack. log.cpp 216 Here the analyzer detected code with an error. In this code fragment, we see an attempt to … Continue reading DuckStation
#Bugs_in_C/C++_projects #C/C++_bugs_of_the_month #Bug_of_the_month #bugs #coding #cpp #programming
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Vulnerabilities due to XML files processing: XXE in C# applications in theory and in practice
▻https://hownot2code.com/2022/03/16/vulnerabilities-due-to-xml-files-processing-xxe-in-c-applications-in-th
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. Before we begin, note that there are several types of vulnerabilities related to XML processing. The … Continue reading Vulnerabilities due to XML files processing: XXE in C# applications in theory and in practice
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Mistakes and suspicious code fragments — or how the static analyzer checked .NET 6
▻https://hownot2code.com/2022/03/30/mistakes-and-suspicious-code-fragments-or-how-the-static-analyzer-check
Videos that analyze errors in software projects are an excellent opportunity to practice #coding and learn from other people’s mistakes. This time we’ll analyze the .NET 6 source code. Have fun watching this video and coding 🙂
#Development_in_C# #Tips_and_tricks #C# #Csharp #dotnet #programming
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
How to make code reliable and secure [The #misra standard and PVS-Studio]
▻https://hownot2code.com/2022/03/23/how-to-make-code-reliable-and-secure-the-misra-standard-and-pvs-studio
What is the MISRA standard and what is it for? How to secure your code with the use of MISRA and the PVS-Studio static analyzer? In this #Video, we tried to briefly answer these and other questions. Have fun watching this video and #coding 🙂
#Tips_and_tricks #MISRA_compliance #programming #static_code_analysis #technology #tutorial
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
An example of undefined behavior caused by absence of return
▻https://hownot2code.com/2022/03/09/an-example-of-undefined-behavior-caused-by-absence-of-return
This article contains a very interesting example. The absence of the return statement in a value-returning function leads to undefined behavior. It’s a perfect example of how wrong code can crash one day, even though it could work for many years. We inspect an error pattern that the SEI CERT C++ coding standard describes as MSC52-CPP. … Continue reading An example of undefined behavior caused by absence of return
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
How PVS-Studio prevents rash code changes, example N2
▻https://hownot2code.com/2022/03/04/how-pvs-studio-prevents-rash-code-changes-example-n2
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. Actually, the image above already demonstrates everything. You do not … Continue reading How PVS-Studio prevents rash code changes, example N2
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
PVS-Studio: static code analysis technology
▻https://hownot2code.com/2022/03/02/pvs-studio-static-code-analysis-technology
PVS-Studio provides static analyzers for C, C++, C# and Java languages on Windows, Linux and macOS platforms. PVS-Studio analyzers can vary slightly due to certain features that the languages have. However, all our analyzers share common technologies and approaches to the implementation of static analysis. As part of PVS-Studio, there are 3 separate software tools for static … Continue reading PVS-Studio: static code analysis technology
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Errors and suspicious code fragments in .NET 6 sources
▻https://hownot2code.com/2022/02/11/errors-and-suspicious-code-fragments-in-net-6-sources
The .NET 6 turned out to be much-awaited and major release. If you write for .NET, you could hardly miss such an event. We also couldn’t pass by the new version of this platform. We decided to check what interesting things we can find in the sources of .NET libraries. Details about the check I … Continue reading Errors and suspicious code fragments in .NET 6 sources
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Code errors in #LLVM 13.0.0 that compiler and analyzers couldn’t find. But #PVS-Studio did
▻https://hownot2code.com/2022/02/16/code-errors-in-llvm-13-0-0-that-compiler-and-analyzers-couldnt-find-but
Yes, even well-tested applications like compilers have errors. Check the #Video to learn more about them. Have fun watching this video and #coding 🙂
#Tips_and_tricks #programming #static_code_analysis #static_code_analyzer #tutorial
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
The Old New Thing
Raymond Chen
Il est majoritairement tiré de 20 ans de ce blog :
▻https://devblogs.microsoft.com/oldnewthing
#ux #uxdesign #informatique
10 C# tips for beginners
▻https://hownot2code.com/2022/02/23/10-c-tips-for-beginners
C# is a user-friendly language. However, it may be difficult for beginners. We’ve prepared 10 C# tips for those who are starting their journey. We hope these tips will help you to improve your skills in #programming. Have fun watching this #Video and #coding 🙂
#Development_in_C# #Tips_and_tricks #C# #Csharp #development #static_code_analysis
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
The most interesting C# / .NET blogs and websites
▻https://hownot2code.com/2022/02/25/the-most-interesting-c-net-blogs-and-websites
Let’s take a look at the list of information sources that can be useful for the C# / .NET developers. Our list includes blogs, repositories with source code, standards and accounts of developers who covers the deep aspects of the C# and .NET. Blogs .NET Blog Link: ▻https://devblogs.microsoft.com/dotnet It’s an official blog from Microsoft about .NET, … Continue reading The most interesting C# / .NET blogs and websites
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Tutorial: how to port a project from Interop Word API to Open XML SDK
▻https://hownot2code.com/2021/11/12/tutorial-how-to-port-a-project-from-interop-word-api-to-open-xml-sdk
With the .NET5 release further development of some projects was questionable due to the complexity of porting. One can abandon small outdated libraries or find a replacement. But it’s hard to throw away Microsoft.Office.Interop.Word.dll. Microsoft doesn’t plan to add compatibility with .NET Core/5+, so in this article we focus on creating Word files with Open … Continue reading Tutorial: how to port a project from Interop Word API to Open XML SDK
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Pentest Insights: Choosing a Tool for #traffic_analysis and Interception
▻https://hownot2code.com/2021/11/11/pentest-insights-choosing-a-tool-for-traffic-analysis-and-interception
GUEST POST Author David Balaban Traffic analysis is a very important stage of penetration testing. In packets transmitted over the network, you can find many interesting things, for example, passwords for accessing various resources and other valuable data. To intercept and analyze traffic, sniffers are used, which humanity has invented a great many. Today I will … Continue reading Pentest Insights: Choosing a Tool for Traffic Analysis and Interception
#Tips_and_tricks #bugs #information_security #safety #security
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Using Static Analysis Online [Compiler Explorer]
▻https://hownot2code.com/2021/11/10/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. … Continue reading Using Static Analysis Online [Compiler Explorer]
#Tips_and_tricks #bugs #coding #CompilerExplorer #development #programming #static_code_analysis #technology #tools #tutorial
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Optimization of .NET applications: a big result of small edits
▻https://hownot2code.com/2021/11/08/optimization-of-net-applications-a-big-result-of-small-edits
Today we’re going to discuss how small optimizations in the right places of the application can improve its performance. Imagine: we remove the creation of an extra iterator in one place, get rid of boxing in the other. As a result, we get drastic improvements because of such small edits. One old and simple idea … Continue reading Optimization of .NET applications: a big result of small edits
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G