Programming Tips πŸ’‘
54.5K subscribers
65 photos
8 videos
30 files
338 links
Programming:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact & Ads: @MoienTajik
Download Telegram
Pose πŸ‘₯

Replace any .NET method (including static and non-virtual) with a delegate. πŸ’Ž

It is similar to Microsoft Fakes but unlike it Pose is implemented entirely in managed code (Reflection Emit API).✨

Everything occurs at runtime and in-memory, no unmanaged Profiling APIs and no file system pollution with re-written assemblies.⚑️


Example Usage πŸ”₯:

Shim static property getter
⏱:

Shim dateTimeShim = Shim.Replace(() => DateTime.Now).With(() => new DateTime(2004, 4, 4));


Usage πŸ‘Ύ:

// This block executes immediately
PoseContext.Isolate(() =>
{
// All code that executes within this block
// is isolated and shimmed methods are replaced

// Outputs "4/4/04 12:00:00 AM"
Console.WriteLine(DateTime.Now);
}, dateTimeShim);


https://t.me/pgimg/179

[ Github ] : github.com/tonerdo/pose

γ€°γ€°γ€°γ€°γ€°γ€°
#CSharp #DotNet #Fake
@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
EasyCompressor πŸ“¦

EasyCompressor is an open-source compression abstraction library that supports and implements many compression algorithms such as Zstd, LZMA, LZ4, Snappy, Brotli, GZip and Deflate. πŸ—‚

It is very useful for using along with Distributed Caching or storing files in database. βœ…

[ GitHub ] : github.com/mjebrahimi/EasyCompressor

〰️〰️〰️〰️〰️〰️
#Compression #CSharp #DotNet
@ProgrammingTip
Blazor WebAssembly 3.2.0 now available πŸš€

I’m thrilled to announce that Blazor WebAssembly is now officially released.

This is a fully-featured and supported release of Blazor WebAssembly that is ready for production use. βœ…

Full stack web development with .NET is now here! ⚑️

[ Article ]: https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-now-available/

〰️〰️〰️〰️〰️〰️
#Blazor #DotNet #Core
@ProgrammingTip
Secrets of a .NET Professional πŸ‘Ύ

In this post, we’ll go through technical and non-technical ideas that have helped me through some of my toughest projects.

[ Article ] : https://kutt.it/DotSec

〰️〰️〰️〰️〰️〰️
#DotNet
@ProgrammingTip
Awesome Microservices .NET Core Resources 😎

The best resources for Microservices in .NET Core πŸ‘Ύ

[ Github ] : kutt.it/dotnet-aws

〰️〰️〰️〰️〰️〰️
#DotNet #DotNetCore #AspNetCore #Microservice
@ProgrammingTip
Looking inside ConfigurationManager in .NET 6 βœ…

ConfigurationManager was added to support ASP.NET Core's new WebApplication model, used for simplifying the ASP.NET Core startup code. 🧹

However ConfigurationManager is very much an implementation detail. It was introduced to optimise a specific scenario (which I'll describe shortly), but for the most part, you don't need to (and won't) know you're using it.

In this post, We take a look at the ConfigurationManager class, why it was added, and some of the code used to implement it.


[ Article ] : https://kutt.it/cfg-mgr

〰️〰️〰️〰️〰️〰️
#DotNet #AspNetCore
@ProgrammingTip