The “Billion Dollar Mistake”—null content—has plagued C# developers since version 1.0. NullReferenceException is the most common runtime error. C# 8.0 introduces Nullable Reference Types (NRT), a feature that moves null checking from runtime to compile time. This is not just a syntax change; it’s a fundamental shift in how we write safety-critical C# code. How […]
Read more →Search Results for: name
C# 8.0: Nullable Reference Types in Practice
The “Billion Dollar Mistake” – the null reference – is finally being addressed in C# 8.0. Nullable Reference Types (NRT) are not just a compiler check; they are a fundamental shift in how we design software. Enabling NRT To enable it, add <Nullable>enable</Nullable> to your .csproj. Prepare for a sea of yellow warnings. Do not […]
Read more →Microsoft Teams Development: Building Tabs with SPFx
SPFx web parts can run as Microsoft Teams tabs. Here’s how to make your web parts Teams-aware. Enable Teams Support Detect Teams Context Deploy to Teams Build and package SPFx solution Deploy to app catalog (sync to Teams enabled) Add app to Teams channel References Building for Teams
Read more →TypeScript with React: Type-Safe Components
TypeScript makes React development safer. Here’s how to type your components properly. Function Components useState with Types Event Handlers References React TypeScript Cheatsheet
Read more →React Testing with Jest and React Testing Library
React Testing Library encourages testing behavior, not implementation. Here’s how to write effective React tests. Setup Basic Test Async Testing Guidelines Query by role, label, or text – not test IDs Test user behavior, not implementation Avoid testing internal state References React Testing Library
Read more →SQL Server 2019: What’s New for Developers
SQL Server 2019 brings big data clusters, improved query processing, and better Linux support. Here are the highlights for developers. Intelligent Query Processing Batch mode on rowstore: Faster analytical queries Memory grant feedback: Automatic memory adjustments Table variable deferred compilation: Better estimates New T-SQL Features Accelerated Database Recovery Near-instant recovery regardless of transaction log size. […]
Read more →