As a software engineer, working with database could be a part of daily work. Even though, creating an industry-standard DDL (Data Definition Language) change request to update database is still a very challenging job for many software engineers. Generally speaking, a standard DDL change request should fulfill following requirements:
Data structures like Heap, PriorityQueue, and TreeSet, etc. that are able to maintain ordered state are very useful in many scenarios, especially for some complicated cases. Even though C# does not provide implementation of these data structures, it provides excellent alternatives. In this tutorial, I would like to introduce three sorted data structures in C# as well as show how to implement custom Comparer for these sorted data structures.
SortedDictionary<TKey, TValue> is a collection of KeyValuePair<TKey, TValue> that maintain sorted state on the key. Like normal data structure Dictionary in C#, it shares some common methods with Dictionary including:
Union-Find data structure is a very powerful tool in Computer Science to solve Disjoint-Set problem or Dynamic Connectivity problem, and it is especially important in some graph-related challenges. In this tutorial, I would like to share what the Union-Find data structure is for, and how to implement and optimize the data structure in C# with three implementations including Quick-Find, Quick-Union, and Weighted-Quick-Union.
Assume we have a set of villages in map, and there is no way between any two villages at initial, which means each village is isolated from other villages. …
Cache system is a very important tool to improve performance of applications via allowing faster access to data maintained in cache. It is more expensive per word than other types of memory including main memory and hard disk. As a result, cache system comes with pretty limited capacity and it requires a smart replacement policy to manage data in cache when its capacity has been reached. And the cache replacement policy should be able to minimize the number of cache misses. …
Angular 2+ has been a very popular front-end platform for modern web applications since 2016. It introduced a component-based architecture with great benefits like modularity, which allows developers to split the web application into different modules and load them with one of the three module-loading strategies, including Eager Loading, Lazy Loading, and Pre-Loading. In this tutorial, I would like to introduce these three module-loading strategies in Angular with What, When, and How, and at the end of this tutorial, you will be able to implement these three loading strategies in the same web application.
Feature modules under Eager Loading would…
Google Dialogflow is being a very powerful tool to build chatbots using AI technologies. Users of Google Dialogflow can train the chatbot and provide responses using the user interface of Dialogflow, but it would be more powerful, efficient, and convenient for users to provide customized responses via Webhook. In this tutorial, I would like to introduce how to integrate Google Dialogflow Webhook and Web API using .NET Core and C#.
In this tutorial, we will complete following items:
In this tutorial, I would like to share how to deploy .NET CORE Web API to Azure, and this tutorial contains two parts: Create Web API using .NET Core and Deploy the API to Azure.
In this tutorial, I am using following tools:
Let’s get started!
Step 1: Create a new Web API project
Open Visual Studio, create a new project and select “ASP.NET CORE Web Application”, and configure the project name and location…
Full-Stack Software Developer