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
C# 8 Interfaces: Dangerous Assumptions in Default Implementation ⚠️

One of the features that is being promoted about C# 8 interfaces is that we can add members to an interface without breaking existing implementers. βœ…

But we can cause a lot of pain if we aren't careful. πŸ€·πŸ»β€β™‚οΈ

Let's look at some code that makes bad assumptions so that we can understand the importance of avoiding these problems. ⛔️


[ Article ] : kutt.it/csdif

〰️〰️〰️〰️〰️〰️
#CSharp #Interfaces
@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
Working with Expression Trees in C# πŸ—‚

Expression trees is an obscure, although very interesting feature in .NET. Most people probably think of it as something synonymous with object-relational mapping frameworks, but despite being its most common use case, it’s not the only one. There are a lot of creative things you can do with expression trees, including code generation, transpilation, metaprogramming, and more.

In this article I will give an overview of what expression trees are and how to work with them, as well as show some interesting scenarios where I’ve seen them used to great effect. βœ…

[ Article ] : kutt.it/exptree

〰️〰️〰️〰️〰️〰️
#CSharp #Expressions
@ProgrammingTip