TypeScript 4.0 Beta: Variadic Tuple Types

TypeScript 4.0 is a major milestone. The headline feature is Variadic Tuple Types, which finally allows strong typing for high-order functions like `concat` or `curry`. We explore this and Labeled Tuple Elements. Variadic Tuple Types You can now use spread syntax in generic tuple logic. Labeled Tuple Elements Tuples can now provide descriptive labels for […]

Read more β†’

Kubernetes Operators in .NET: Getting Started

Operators extend Kubernetes with custom domain logic. While usually written in Go, the .NET ecosystem has matured with the `KubeOps` SDK. We can now write C# operators to manage custom resources like `DatabaseCluster` or `TenantNamespace`. The Operator Pattern Defining a CRD in C# The Reconciler Key Takeaways Operators encode operational knowledge into software. The Reconcile […]

Read more β†’

Terraform with Azure: Complete Module Development

Modules are the building blocks of reusable Terraform infrastructure. A good module encapsulates complexity and enforces company standards (naming conventions, tagging, security). This guide builds an Azure VNET module with subnets and security groups. Directory Structure Using `for_each` for Subnets Key Takeaways Keep modules focused and single-responsibility. Always define `terraform` block with version constraints. Pin […]

Read more β†’

React Context Best Practices and Patterns

React Context provides a way to pass data through the component tree without prop drilling. Combined with the useReducer hook, it offers a lightweight alternative to Redux for global state management. However, misuse can lead to performance issues. The Split Context Pattern To avoid unnecessary re-renders, split State and Dispatch into separate contexts. Why Split? […]

Read more β†’

Azure Functions Durable Entities: Stateful Serverless

Serverless is typically stateless. Durable Functions changed that with orchestrations. Now, “Durable Entities” brings the Actor Model (similar to Akka or Orleans) to Azure Functions, allowing you to define small, stateful objects that persist across calls. Defining an Entity Signaling an Entity Entities are addressed by ID. Signals are one-way (fire and forget) writes. Key […]

Read more β†’

SQL Server 2019: Intelligent Query Processing in Action

SQL Server 2019 introduces “Intelligent Query Processing” (IQP), a suite of features that fix performance issues automatically without code changes. We look at Adaptive Joins and Scalar UDF Inlining. Adaptive Joins Traditionally, the optimizer chooses Nested Loop vs Hash Join based on *estimated* row count. If estimates are wrong, performance tanks. Adaptive Joins defer this […]

Read more β†’