Programming Tips πŸ’‘
51.5K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
Send ETag headers in ASP.NET Core ✨

ASP.NET Core doesn’t add an ETag header automatically to HTTP responses from MVC action methods or Razor Pages. ❌

We have to implement that ourselves to provide the users with true Conditional GET support that honors the If-None-Match request header. βœ…

Wouldn’t it be nice if all we had to do was to register it using app.UseETagger() like this❓

https://t.me/pgimg/88

[ Article ] : http://bit.do/etags

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #AspCore #ETag
@ProgrammingTip
ASP.NET Core Interview Questions πŸ’Ό

This post is about ASP.NET Core Interview Questions. ⁉️

These questions are directly tied to ASP.NET Core. βœ…

They are not meant to serve as only questions that you would ask a candidate during an interview. ❌

Use these to assess if the candidate has any knowledge about ASP.NET Core. πŸ‘“

The questions should serve as guidelines for core ASP.NET Core concepts that candidate should be familiar with. πŸ‘ͺ

https://t.me/pgimg/100

[ Article ] : http://bit.do/aspint

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #AspCore #Core #Interview
@ProgrammingTip
The Evolving Infrastructure of .NET Core ⚑️

It would be useful to take a brief look at the history of ASP.NET Core's infrastructure systems and the significant improvements that have been made in the last year or so. πŸ’Ž

This post will be interesting if you are interested in build infrastructure or want a behind-the-scenes look at how we build a product as big as .NET Core. πŸ”₯


[ Article ] : kutt.it/netInfra

〰️〰️〰️〰️〰️〰️
#Microsoft #AspMvc #Core #AspCore
@ProgrammingTip
JSON API .NET Core ✨

A framework for building json:api compliant web APIs. πŸ’Ž

The ultimate goal of this library is to eliminate as much boilerplate as possible by offering out-of-the-box features such as sorting, filtering and pagination. πŸ—‚

You just need to focus on defining the resources and implementing your custom business logic. πŸ‘ŒπŸ»

This library has been designed around dependency injection making extensibility incredibly easy. πŸ’‰


[ Github ] : kutt.it/JsonApiCore
[ Documentation ] : json-api-dotnet.github.io

〰️〰️〰️〰️〰️〰️
#AspMvc #AspCore #DotNet
@ProgrammingTip
Kubernetes for .NET Developers ☸️

Have you started building containerized application and struggled with scaling across multiple hosts❓

Would you like to simplify DevOps tasks such as deployment and configuration❓

Have you heard about Kubernetes and would like to learn more❓

Then this presentation is for you. πŸ’Ž

Kubernetes
is an open source system for managing containerized applications across multiple hosts; providing basic mechanisms for deployment, maintenance, and scaling of applications. πŸ”₯

In this presentation, I will walk you through Kubernetes fundamentals, the high level architecture, how would you deploy an ASP.NET Core application to Kubernetes and finally how would you configure and launch auto-scaling, self-healing Kubernetes cluster. ⚑️


[ YouTube ] : youtu.be/uh4V2IjSrlI
[ Github ] : kutt.it/KubeAsp

〰️〰️〰️〰️〰️〰️
#Kubernetes #DotNet #Core #AspMvc #AspCore
@ProgrammingTip
Using the ReferenceAssemblies NuGet package to build .NET Framework libraries on Linux, without installing Mono πŸ’Ž

In this post I show how you can build .NET projects that target .NET Framework versions on Linux, without using Mono! πŸ€·πŸ»β€β™‚οΈ

By using the new Microsoft.NETFramework.ReferenceAssemblies NuGet packages from Microsoft you don't need to install anything more than the .NET Core SDK! πŸ”₯


[ Article ] : kutt.it/coremono

〰️〰️〰️〰️〰️〰️
#CSharp #DotNet #AspCore #NetCore
@ProgrammingTip
Running async tasks on app startup in ASP.NET Core 3.0 ⚑️

In this post, I describe how a small change in the ASP.NET Core 3.0 WebHost makes it easier to run asynchronous tasks on app startup using IHostedService. βœ…

Unfortunately, in 2.x it wasn't possible to use any of the built-in ASP.NET Core primitives to achieve this ❌ :

β€’ IStartupFilter has a synchronous API, so would require doing sync over async. πŸ€¦πŸ»β€β™‚οΈ

β€’ IApplicationLifetime has a synchronous API and raises the ApplicationStarted event after the server starts handling requests. πŸ€·πŸ»β€β™‚οΈ

β€’ IHostedService has an asynchronous API, but is executed after the server is started and starts handling requests. πŸ‘πŸ»

With ASP.NET Core 3.0, a small change in the WebHost code makes a big difference - we no longer need these solutions, and can use IHostedService without the previous concerns❗️


[ Article ] : kutt.it/asphost

〰️〰️〰️〰️〰️〰️
#AspNet #AspMvc #AspCore
@ProgrammingTip