For 20 years, every C# console application started with the same ceremony: namespace, class Program, static void Main(string[] args). C# 9.0 and .NET 5 change this with Top-level programs. The Change Here is the “Hello World” of the past: Here is C# 9: How It Works The compiler essentially wraps your top-level code into a […]
Read more โMonth: November 2020
Azure Communication Services: Integration Guide
Azure Communication Services (ACS) brings the power of Microsoft Teams to your own applications. You get the same reliable global network for voice, video, chat, and SMS, accessible via REST APIs and SDKs. Architecture Overview Creating a Chat Client Here is how simple it is to initialize a chat client in JavaScript/TypeScript: Key Capabilities Voice […]
Read more โVue 3 Teleport: Rendering Outside the Component Tree
One of the most practical new features in Vue 3 is the <Teleport> component. It solves a classic UI problem: how to render a component logically inside a parent (for data/events) but visually somewhere else in the DOM (for z-index/overflow issues). The Problem: Modals and z-index Imagine a default modal component nested deep within your […]
Read more โEntity Framework Core 5.0: Many-to-Many and More
Entity Framework Core 5.0 ships alongside .NET 5 and brings features that developers have missed since EF6. It completes the “missing features” gap while pushing performance further. Many-to-Many Relationships Finally! You no longer need to manually map the join table entity. EF Core 5 creates it for you automatically. Split Queries A common performance pitfall […]
Read more โSource Generators in C# 9: Compile-Time Code Generation
Metaprogramming in C# has historically relied on reflection (slow at runtime) or T4 templates (clunky build integration). C# 9 changes the game with Source Generators. They allow you to hook into the compilation process, inspect your code, and generate new C# files on the fly that get compiled with your project. How It Works Example: […]
Read more โ.NET 5: Performance Improvements Deep Dive
.NET 5 is the fastest .NET version ever releases. The engineering team has gone through the runtime and libraries with a fine-toothed comb, optimizing everything from the impacts of the Garbage Collector (GC) to the internals of List<T>. Let’s look at the numbers. TechEmpower Benchmarks In the TechEmpower benchmarks (Round 19/20), .NET 5 performs exceptionally […]
Read more โ