8 июня 2023 г.
Просмотров: 406
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...
далее...
7 июня 2023 г.
Просмотров: 661
I’d like to take you on a journey back in time, precisely 15 years ago, when my journey into software development began. As a younger me, armed with nothing but curiosity, I was introduced to the html and css.
In the beginning, it was all about figuring out the basics. HTML...
далее...
6 июня 2023 г.
Просмотров: 573
Mastering the art of scalable and resilient systems with essential microservices design patterns
Unleash the power of microservices
Are you striving to build efficient, scalable, and resilient software systems? As a software developer or senior developer, you must have come across the term “microservices architecture.” This revolutionary approach to software development has...
далее...
5 июня 2023 г.
Просмотров: 515
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...
далее...
2 июня 2023 г.
Просмотров: 371
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...
далее...
31 мая 2023 г.
Просмотров: 929
LINQ (Language Integrated Query) is a powerful querying tool in .NET that allows you to perform complex queries directly in C#.
The System.Linq.Expressions namespace is a part of LINQ that provides classes, interfaces, enumerations and structures to work with lambda expressions and expression trees.
Lambda expressions are a way to create anonymous...
далее...
31 мая 2023 г.
Просмотров: 366
Understanding uow to use And and Or operators with Expression Trees
As a C# developer, you may have come across scenarios where you need to build complex logical expressions dynamically based on user input or other dynamic factors. In such cases, building expressions statically can become tedious and error-prone.
In this article,...
далее...
29 мая 2023 г.
Просмотров: 1666
Maximizing Performance in Asynchronous Programming
Task and Task<TResult>
The Task and Task<TResult> types were introduced in .NET 4.0 as part of the Task Parallel Library (TPL) in 2010, which provided a new model for writing multithreaded and asynchronous code.
For demonstration purposes, let’s build an example:
using System;
using System.Diagnostics;
using System.Threading.Tasks;
public class Program
{
public static...
далее...
27 мая 2023 г.
Просмотров: 503
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...
далее...
14 мая 2023 г.
Просмотров: 2554
In this article, I’ll show you what the basic steps are for converting a SQL query into LINQ. You’ll learn the basic steps needed while we convert an example query.
In this article, it's assumed that you have a basic understanding of SQL, and know how to write C# code.
Introduction
Structured Query...
далее...