Marker Interfaces in C#

Introduction Marker interfaces, also known as tagging interfaces, are interfaces that do not contain any method or property declarations. They are used to mark or tag a class so that the program can perform some specific operat…

Why List Size Matters in C# Applications?

Do you know that List<T> accepts size parameter and its impact the performance? Yes, the size of a List<T> can impact performance, especially when adding elements to the list. When a List<T> reaches its cap…

How to implement Parallel Quick Sort in C#

Parallel Quick Sort in C# Quick Sort is a popular sorting algorithm that is commonly used due to its performance and simplicity. However, for large data sets, it can become slow as the sorting time increases. To speed up the so…

Create Your Own Compiler in C# with ANTLR: A Step-by-Step Guide

Create Compiler In C# Using ANTLR-Crash Course I’m excited to announce the release of my new book, “Create Compiler In C# Using ANTLR-Crash Course” on Amazon! This book is a step-by-step guide for beginners to learn how to crea…

When and how to use the volatile keyword in C#

In multi-threaded programming, there can be issues with the consistency and visibility of data between threads. The volatile keyword is used to indicate that a variable’s value might be modified by multiple threads simultaneously…

Hands-On Data Structures and Algorithms with TypeScript

This book is intended for those who do not have the time to read a lengthy book or tutorial. This book is a collection of algorithms and data structures, along with the code that explains them. This book is simple to understand…

Find the middle of a given linked list

The tortoise and hare algorithm is a classic algorithm to find the median of a linked list. It is named after the fable of the tortoise and the hare, where the tortoise wins by virtue of its steady pace. The algorithm works as …

What is the two pointer algorithm?

What is the two pointer algorithm? Two pointer technique is used to solve this problem in O(n) time complexity and O(1) space complexity For example lets suppose you have a sorted array and you want to find the sum of two elem…

Why Do We Use SOLID Principles in C#?

The goal of the SOLID principles is to make our code more maintainable and extensible. While this is the ultimate goal, it’s not always the first step we take when starting a new project. The SOLID principle are guidelines for w…

Which One Should You Choose TypeScript vs JavaScript

When it comes to choosing between JavaScript and TypeScript, there are a few factors that should be considered. One of the biggest differences between the two is that TypeScript is a superset of JavaScript so it means that it ha…

Load More
That is All