Programming Tips 💡
51.6K 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
Blazor, web framework for browser-based .NET apps 🔥

Today, nearly all browser-based apps are written in JavaScript (or similar languages that transpile to it). 👍🏻

That’s fine, but there’s no good reason to limit our industry to basically one language when so many powerful and mature alternate languages and programming platforms exist. ⚡️

Starting now, WebAssembly opens the floodgates to new choices, and one of the first realistic options may be .NET. 💎

Blazor is a new experimental web UI framework from the ASP.NET team that aims to brings .NET applications into all browsers (including mobile) via WebAssembly.

It allows you to build true full-stack .NET applications, sharing code across server and client, with no need for transpilation or plugins. ✌🏻

In this talk I’ll demonstrate what you can do with Blazor today and how it works on the underlying WebAssembly runtime behind the scenes. 🌀

You’ll see its modern, component-based architecture (inspired by modern SPA frameworks) at work as we use it to build a responsive client-side UI. 🌈

I’ll cover both basic and advanced scenarios using Blazor’s components, router, DI system, JavaScript interop, and more. 💙


Don't miss this talk, that's awesome ! ⭐️

[ Video ] : kutt.it/blz

〰️〰️〰️〰️〰️〰️
#Blazor #WebAssembly #CSharp
@ProgrammingTip
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
Proto.Actor 💎

Cross-platform actors for .NET, Go, Java and Kotlin. ⚡️

The Actor Model provides a higher level of abstraction for writing concurrent and distributed systems. It alleviates the developer from having to deal with explicit locking and thread management, making it easier to write correct concurrent and parallel systems.

Features :
• Simple Concurrency & Distribution
• Extreme Performance
• Resilient by Design
• Built on standards
• Virtual Actors
• Distributed by Default
• Supervision & monitoring
• Communications on gRPC


[ Website ] : https://proto.actor
[ Github ] : https://github.com/AsynkronIT/protoactor-dotnet

〰️〰️〰️〰️〰️〰️
#Actor #ActorModel #CSharp #Go #Kotlin
@ProgrammingTip
Lowering in C#: What's really going on in your code? 👾

If you're attending NDC you probably think you know what a foreach loop does - it iterates over a collection, right?

BUT do you know how? Do you know what the C# compiler does when you write a foreach loop? What about a lambda expression? Or the re-entrant magic that is a yield return statement

In this session we'll dive into Roslyn, the C# compiler, and learn about lowering and how it helps the compiler do its job, and what it does to your code. In the process you'll gain the skills to identify some of the common performance pitfalls of .NET, as well as just get a deeper understanding of what the code you write really does. 💎


[ YouTube ] : https://youtu.be/gc1AxbNybvw

〰️〰️〰️〰️〰️〰️
#CSharp #LowLevel #Compiler #Roslyn
@ProgrammingTip
Nuke Build 🗂

As C# developers, we are spoiled with a great language and awesome IDEs.

Why do most automation systems never really match the level of convenience and integration that we're used to?

NUKE is different. 💎

It is fully based on C# console applications and uses the type system to its full extent.

You want your auto-completion, package management, debugging, refactorings, formatting, and navigation back? It’s available right there❗️


[ Website ] : https://nuke.build/
[ GitHub ] : github.com/nuke-build/nuke

〰️〰️〰️〰️〰️〰️
#CSharp #Dotnet #BuildSystem
@ProgrammingTip
Source Link 🐞

Source Link is a language- and source-control agnostic system for providing first-class source debugging experiences for binaries.

The goal of the project is to enable anyone building NuGet libraries to provide source debugging for their users with almost no effort.

Microsoft libraries, such as .NET Core and Roslyn have enabled Source Link.

Source Link
is supported by Microsoft.

〰️〰️〰️〰️〰️〰️
#DotNet #CSharp #Debugging
@ProgrammingTip