Добавлено: 23 июля 2023 г.
Unlocking Resilience and Transient-fault-handling in Your C# Code
In an ideal world, every operation we execute, every API we call, and every database we query, would always work flawlessly. Unfortunately, we live in a world where network outages, server overloads, and unexpected exceptions are common realities. To maintain robust, resilient applications, we must anticipate these mishaps. Enter retry logic.
Hope for the best, prepare for the worst.
What is Retry Logic
Retry logic is...
далее...
Добавлено: 27 июня 2023 г.
Introduction
Performance optimization is a key concern in software development, regardless of the programming language or platform you’re using. It’s all about making your software run faster or with less memory consumption, leading to better user experience and more efficient resource usage.
For .NET developers, understanding and implementing performance optimization strategies can be the difference between an application that just ‘works’ and an application that works exceptionally well, even under heavy load.
//...
далее...
Добавлено: 8 июня 2023 г.
Juan Alberto España Garcia
At the end of this article you will understand what “^(?=.*[a-z])(?=.*[A-Z])(?=.*).*” means
Introduction to C# Regex: why it’s a powerful tool for text manipulation
Before diving into the magical world of regular expressions, let’s get an idea of why using C# Regex is important and how it can boost your productivity as a developer.
In this section, we’ll walk through the basics of regular expressions, their syntax, and key elements to help you...
далее...
Добавлено: 5 июня 2023 г.
Juan Alberto España Garcia
In this section, we’ll explore the world of unit testing in C# and .NET, learn what unit testing is, why it’s important, and the landscape of testing frameworks and tools available to developers.
What is Unit Testing?
Unit testing is the process of verifying the correctness of individual units of code, typically methods or functions, in isolation from the rest of the system. This ensures that each unit performs as expected and...
далее...
Добавлено: 2 июня 2023 г.
Cyclomatic complexity is a code metric (integer value 1 or more) used to measure how complex a function/method is.
It does not take into account lines of code but instead considers complexity to be the distinct paths through a function.
Microsoft defines cyclomatic complexity as measuring the amount of decision logic in a source code function.
Cyclomatic complexity: if if if if if else …
Because cyclomatic complexity concerns itself with decision branches through...
далее...
Добавлено: 27 мая 2023 г.
In today’s fast-paced world of software development, it is crucial to be familiar with design patterns that can help you create robust, efficient, and maintainable code. One of the most widely used programming frameworks for enterprise applications is the .NET framework. In this article, we will explore the most commonly used design patterns in .NET development and how they can be applied to solve common problems encountered in software development.
What...
далее...
Добавлено: 13 мая 2023 г.
Juan Alberto España Garcia
Introduction to Async and Await in C#
Asynchronous programming has come a long way in C#. Prior to the introduction of async and await, developers had to rely on callbacks, events and other techniques like the BeginXXX/EndXXX pattern or BackgroundWorker.
These methods often led to complex and difficult-to-maintain code. With the release of C# 5.0, async and await keywords were introduced, simplifying asynchronous programming and making it more accessible to developers.
The Importance...
далее...
Добавлено: 8 мая 2023 г.
Dapper is a lightweight ORM (Object-Relational Mapping) framework for .NET Core and is commonly used to query databases in .NET Core applications. Here are some of the advanced features of Dapper in .NET Core:
Multi-Mapping: Dapper allows you to map multiple database tables to a single class. This is useful when you need to retrieve data from multiple tables and map them to a single object.
...
далее...
Добавлено: 2 мая 2023 г.
Juan Alberto España Garcia
Confused about choosing between struct and class in C#? Read this article to understand the differences and make an informed decision.
In C#, there are two primary object types that developers can use to build their code: structs and classes. While these two types may seem similar at first glance, they have some key differences that set them apart from each other.
In this article, we’ll explore what structs and classes are,...
далее...