Skip to main content

Posts

Blazor WebAssembly Tutorial 2026: Build Web Apps in C#

Learn Blazor WebAssembly in 2026 with this step-by-step C# tutorial. Build interactive web apps without JavaScript, with code examples and best practices. If you're a C# developer who has ever groaned at the thought of context-switching into JavaScript, Blazor WebAssembly is the technology you've been waiting for. In 2026, Blazor WebAssembly (often shortened to "Blazor WASM") is a mature, production-ready framework that lets you build fully interactive single-page applications that run entirely in the browser—using nothing but C#, Razor, and .NET. In this Blazor WebAssembly tutorial, you'll learn how it works under the hood, build a working app from scratch with .NET 10, and pick up the best practices and pitfalls that separate a smooth project from a frustrating one. What Is Blazor WebAssembly and Why Does It Matter in 2026? Blazor WebAssembly is a client-side hosting model for ASP.NET Core Blazor. Instead of running your C# on a server and pushing UI dif...
Recent posts

NLP with C# and ML.NET: Complete Guide with Examples

Learn natural language processing in C# with ML.NET: text classification, sentiment analysis, tokenization and TF-IDF with runnable code. Start building today. Natural language processing (NLP) in C# used to mean calling a Python service or a cloud API. That is no longer the case. With ML.NET , Microsoft's open-source machine learning framework for .NET, you can train and run natural language processing in C# entirely inside your own application—no Python, no external runtime, and no per-request fees. This complete guide walks through the core NLP concepts, builds a working sentiment analysis model, shows multi-class text classification, and covers the best practices and pitfalls you will hit in production. What Is Natural Language Processing in C# and Why ML.NET? NLP is the branch of machine learning that teaches software to understand human text: classifying reviews as positive or negative, routing support tickets, detecting spam, extracting topics, and more. Under the ho...

12-Factor App with ASP.NET Core: Cloud-Native .NET Guide

Learn how to build cloud-native .NET apps using 12-factor app principles with ASP.NET Core. Practical C# examples, best practices, and pitfalls. Start now. The 12 factor app methodology is the closest thing the industry has to a shared definition of "cloud-native." Originally published by Heroku engineers, its twelve principles describe how to build applications that deploy cleanly to Kubernetes, Azure App Service, AWS ECS, or any modern platform, scale horizontally without drama, and survive being killed and restarted at 3 a.m. In this guide you'll learn how to apply each of the 12 factor app principles to ASP.NET Core , with runnable C# examples that map directly onto .NET 8/9 features. If you're building cloud-native .NET apps, ASP.NET Core microservices, or moving a legacy app into a .NET Docker container, this is the checklist to build against. What Is the 12-Factor App and Why Does It Matter for .NET? The twelve factors are: Codebase, Dependencies, Confi...

Infrastructure as Code with C#: Pulumi .NET Tutorial

Learn Infrastructure as Code with C# using Pulumi. Step-by-step .NET tutorial with runnable examples, best practices, and pitfalls. Start deploying today. Infrastructure as Code (IaC) lets you define cloud resources—virtual machines, storage, databases, Kubernetes clusters—in files you can version, review, and test like any other software. For years, .NET teams had to leave C# behind to do this, writing Terraform HCL or ARM/Bicep JSON. Pulumi changes that: it lets you write infrastructure as code in C# using the same language, IDE, NuGet packages, and testing tools you already use for your applications. In this tutorial you'll learn how Pulumi works, deploy real Azure and AWS resources from a .NET project, and pick up the best practices and pitfalls that matter in production. What Is Infrastructure as Code, and Why C#? Infrastructure as Code means your cloud environment is described declaratively in source files, and a tool reconciles the real world with that description. ...

Azure AI Search with C# Tutorial: Build Smart Search (2026)

Learn Azure AI Search with C# step by step: create an index, upload documents, run full-text, semantic and vector search with the .NET SDK. Start building today. If your application still relies on WHERE Name LIKE '%term%' for search, your users are getting a worse experience than they deserve. Azure AI Search with C# (formerly Azure Cognitive Search) gives you a fully managed search engine that handles full-text ranking, typo tolerance, faceting, semantic re-ranking and vector similarity — all accessible from .NET through the Azure.Search.Documents SDK. In this tutorial you will build a working product search from scratch: create an index, upload documents, run keyword queries, add filters and facets, and finish with hybrid vector search that powers modern RAG (Retrieval-Augmented Generation) applications. Everything here runs on .NET 8/9 with the current stable SDK, and every code sample is complete enough to paste into a console app and run. What Is Azure AI Searc...

C# Design Patterns: Factory, Singleton, Observer, Strategy

Learn C# design patterns every developer must know—Factory, Singleton, Observer, and Strategy—with runnable .NET code examples. Start writing cleaner C# today. If you have been writing C# for more than a few months, you have almost certainly hit the same wall every developer hits: a class that grows to 800 lines, a giant switch statement that needs editing every time a new feature ships, or a service that quietly creates its own dependencies so nothing can be unit tested. C# design patterns exist to solve exactly these problems. They are not academic theory—they are battle-tested solutions to recurring design problems, and the .NET ecosystem uses them everywhere, from HttpClientFactory to ASP.NET Core dependency injection to IObservable<T> . In this tutorial we will cover the four design patterns in C# that every developer must know: Factory , Singleton , Observer , and Strategy . For each one you will get a runnable example targeting modern .NET (C# 12/13), an explanati...