Init-only setters in C# 9 solve an age-old problem: how do you create immutable objects while still using the convenient object initializer syntax? Previously, you had to choose between constructor-based initialization (verbose) or public setters (mutable). Init-only setters give you both convenience and immutability. The Problem The Solution: Init-Only Setters Init in Derived Classes Init-only […]
Read more โSearch Results for: name
C# 9.0 Records: Immutable Data Types Done Right
Records are C# 9’s most impactful feature. They provide a concise syntax for creating immutable reference types with value-based equality. If you’ve ever written a DTO class with equals, hashcode, and toString – records are about to save you hours of boilerplate. The Problem Records Solve Before records, creating a proper immutable data class required […]
Read more โEvent-Driven Architecture with Azure Event Grid
Azure Event Grid is the backbone of event-driven architectures on Azure. It’s a fully managed event routing service that uses a publish-subscribe model. Unlike messaging services (Service Bus, Event Hubs), Event Grid is optimized for reactive programming patterns where you want instant notifications of state changes. Event Grid Architecture Key Concepts Topics are endpoints where […]
Read more โBlazor CSS Isolation: Scoped Styles in .NET 5
.NET 5 brings CSS isolation to Blazor, a feature developers have been requesting since Blazor’s inception. If you’ve used Vue’s scoped styles or Angular’s component styles, you’ll feel right at home. CSS isolation ensures that styles defined for a component only apply to that component – no more worrying about global CSS conflicts. How It […]
Read more โAzure Arc for Kubernetes: Unified Hybrid Cloud Management
Azure Arc for Kubernetes extends Azure’s control plane to any conformant Kubernetes cluster – whether it’s running on-premises, in other clouds, or at the edge. After months of working with Arc in preview, I want to share practical insights on when and how to use it effectively. What Azure Arc Actually Does When you connect […]
Read more โVue 3 Composition API: Practical Examples and Patterns
Now that Vue 3 is released, let’s dive deeper into the Composition API with practical examples you can use in real projects. I’ve been using the Composition API in production for several months via the Vue 2 plugin, and these patterns have proven invaluable. Understanding Reactivity Fundamentals The Composition API introduces two main reactive primitives: […]
Read more โ