Lets break down some best practices for writing good and fast code in .NET, using simple examples and including important principles that anyone can understand. 1. Follow SOLID Principles The SOLID principles help you write better code. Think of them as rules for building a strong house. Single Responsibility Principle (SRP) Each part of your code…
Author: Pablo Francesco
System.Text.Json in .NET: An explanation
In.NET9, the System.Text.Json package has been greatly improved to give developers more powerful and adaptable JSON processing capabilities. Support for JSON schemas, clever application features, and more customization choices for serialization and deserialization procedures are the main focuses of these enhancements. Other features of.NET9 are covered in my previous writings. For ease of comprehension and…
.NET IL Weaving: An Effective Tool for Changing Code at Runtime
IL Weaving: What is it? Modifying compiled Intermediate Language (IL) code in.NET assemblies after compilation but prior to execution is known as IL Weaving. With this method, developers can dynamically add, edit, or remove code without changing the original source code. It is frequently utilized for dynamic security policy enforcement, performance optimization, and aspect-oriented programming…
Why Use Blazor?
Blazor is a robust framework for creating contemporary web apps with C# and.NET rather than JavaScript. It has a number of benefits that make it an appealing option for developers, particularly those who are already involved with the.NET ecosystem. Here are some reasons to think about utilizing Blazor for your upcoming project: 1. Using C#…
NuGet Central Package Management for Dependency Management
Dependency management is simple in single-project applications. Dependencies, on the other hand, quickly become a complex mess in multi-project solutions. Conflicts, version discrepancies, and maintenance costs might reduce output. The revolutionary NuGet Central Package Management (CPM) centralizes dependency control, guaranteeing uniformity, dependability, and simplicity of maintenance for all of your solution’s projects. When was Central…