TS type gymnastics: illustrating a complex advanced type
Let's do a difficult gymnastics today. It will comprehensively use patterns matching, construction, recursion and other routines, which is very helpful to improve the level of type programming.
The advanced types we want to implement are as follows:
Its type parameter is the parameter string query string, which will return the parsed ...
Added by gwydionwaters on Mon, 14 Feb 2022 05:54:35 +0200
C# how to: write parallel using partition local variables Foreach loop
How to: write parallel. XML using partition local variables Foreach loop
The following example demonstrates how to write a that uses partition local variables ForEach Method. When ForEach When the loop executes, it divides its source collection into multiple partitions. Each partition has its own copy of the partition local variable. Partiti ...
Added by fearfx on Fri, 11 Feb 2022 04:13:43 +0200
DDD CRUD database operation log unit test
Write a framework of domain model from scratch
Each article will be marked with a corresponding tag
Github Warehouse address
Complete a business module (single table addition, deletion, modification and query, application layer, domain layer, storage layer and work unit)
Create a unit test (use the unit test to debug the code before you start ...
Added by choppsta on Sat, 05 Feb 2022 14:23:23 +0200
Chicken ribs or innovation -- Blazor enters WinForm
winform is an old technology. I feel a little toothless (I started to contact. net from winform nearly 20 years ago); blazor, a new favorite in Microsoft's technology circle, is being taken care of. What sparks will there be after this technology collision between the old and the young?
. net v6.0.0-preview.3. It brings the premise for the ...
Added by Citizen on Fri, 04 Feb 2022 11:07:18 +0200
Single responsibility lies in NET
Single responsibility is the guiding ideology of reducing coupling, which is applicable to a micro service, a type and a method.
Micro service layer:
Microservices are generally divided according to business areas: Pharmacy microservices are pharmacy businesses, and nurse station microservices are nurse station businesses. In a broad sense, the ...
Added by socalnate on Thu, 03 Feb 2022 15:05:41 +0200
GraphQL: better match with EntityFramework
GraphQL is not only a query language for API, but also a runtime to meet your data query. GraphQL provides an easy to understand and complete description of the data in your API, so that the client can accurately obtain the data it needs without any redundancy. It also makes it easier for the API to evolve over time and can be used to build pow ...
Added by Tjeuten on Wed, 02 Feb 2022 22:18:34 +0200
Stack overflow caused by asynchronous cyclic collection of. NET TCP/IP Socket
We know NET TCP/IP Socket asynchronous circular charging official and most examples are circular charging, but in fact, this method has the problem of stack overflow.
MD, after receiving the Stack Overflow program, it will collapse directly. At present, there are several ways to solve it. Stack Overflow is very wild compared with the several w ...
Added by kanenas.net on Tue, 01 Feb 2022 21:22:05 +0200
GraphQL: better match with EntityFramework
GraphQL is not only a query language for API, but also a runtime to meet your data query. GraphQL provides an easy to understand and complete description of the data in your API, so that the client can accurately obtain the data it needs without any redundancy. It also makes it easier for the API to evolve over time and can be used to build pow ...
Added by Porkie on Tue, 01 Feb 2022 09:49:28 +0200
How do I start anything NET Core Web API project
catalogue
introduce
step
Create a Web API project in Visual Studio
Option 1
Option 2
IIS configuration
Configure Swashbuckle/Swagger
Add Swashbuckle
Add newtonsoft Json
Add exception service
Set CORS policy
Add authentication service
Read Appsettings json
(optional) add database context
Optionally, add RestSharp
(optional) fo ...
Added by nmpku on Mon, 31 Jan 2022 21:05:51 +0200
asp.net core monitoring - introducing Prometheus
In the last blog post, it was said that Prometheus has four indicator types: Counter, Gauge, Histogram and Summary. We made a Counter Demo. Next, let's take a look at Histogram.
3. Histogram: histogram
Histogram, the definition of Wikipedia: it is a graphical representation of data distribution and a two-dimensional statistical chart. Its two c ...
Added by pdn on Sat, 29 Jan 2022 16:35:49 +0200