.NET

C#, dotNet Core, ASP.NET, Entity Framework, testing, architecture, and everything .NET developers need.

Structuring Projects with .NET Core

Organize your code for maintainability

A good project structure makes your code easier to maintain and scale. πŸ“ Typical Structure 1 2 3 4 5 /MySolution /MyProject.Api /MyProject.Core /MyProject.Infrastructure /MyProject.Tests ...

.NET Core and Web Development

Building modern web apps with .NET

.NET Core (now .NET 5/6+) is a cross-platform, high-performance framework for web development. πŸ—οΈ ASP.NET Core Web Apps MVC: Model-View-Controller, for full-featured web apps. Razor Pages: P...

.NET 101 Recap and Next Steps

Your beginner journey in review

Congratulations on finishing the .NET 101 series! Here’s a quick recap and what to do next. πŸ“š What You Learned C# basics (variables, types, operators) Control flow (if, else, switch, loops) ...

GitHub Actions and CI/CD Concepts

Automate everything: from build to deploy

CI/CD stands for Continuous Integration and Continuous Deployment/Delivery. It automates not only testing but also delivery of your app. πŸ—οΈ CI vs. CD CI (Continuous Integration): Build and tes...

Authentication and Best Practices for API Integration

Securing and consuming APIs in C#

Most APIs require authentication. Common methods include API keys, Bearer tokens, and OAuth. πŸ”‘ Using API Keys 1 client.DefaultRequestHeaders.Add("X-Api-Key", "your_api_key_here"); πŸ”’ Bearer Toke...

Sending Requests and Handling Responses

HttpClient workflows in C#

When consuming APIs, you need to send requests and handle responses: including errors, status codes, and deserialization. πŸš€ Sending Requests 1 2 var client = new HttpClient(); var response = awai...

Continuous Integration Basics

Automate your builds and tests

Continuous Integration (CI) means automatically building and testing your code whenever you make changes. 🚦 Why Use CI? Catch bugs early before they hit production Ensure every commit is tes...

Test-Driven Development (TDD)

Write tests first for better code

Test-Driven Development (TDD) means writing your tests before you write the code. πŸ” The TDD Cycle Write a failing test (it describes what you want) Write just enough code to make the test pa...

Mocking and Test Doubles

Testing in isolation with fakes, stubs, and mocks

Sometimes you want to test a class without using its real dependencies. That’s where test doubles come in. πŸͺ€ Types of Test Doubles Stub: Returns fixed data (no real logic) Fake: Simple worki...

Making API Calls Using HttpClient

Best practices for HTTP requests in C#

For production C# apps, follow these best practices with HttpClient. πŸ—οΈ Use IHttpClientFactory (ASP.NET Core) 1 2 3 4 public void ConfigureServices(IServiceCollection services) { services.Add...