ReadMe on TWC
Validate Settings Using The IOptions Pattern in .NET
· Christian Schou Køster
Avoid Complexity with the State Design Pattern in .NET
Struggling with complex if-else chains in your growing codebase? Let me show you how the state design pattern can simplify logic, boost maintainability, and make your code easier to scale—with a practical, real-world example of a document flow.
· Christian Schou Køster
How To Use GitHub Actions To Build And Test .NET Projects
This short GitHub Actions tutorial will teach you how to use GitHub Actions with .NET. By the end of this tutorial, you will know an easy way of creating a new build template and publish it to your Git repository for your .NET project.
· Christian Schou Køster
How To Achieve High-Performance Logging in .NET
Traditional .NET logging can slow your app. Switch to LoggerMessage delegates for better performance or leverage source-generated logging (in .NET 6+) for minimal runtime costs and cleaner code. Boost efficiency, reduce overhead, and log like a pro! 🚀
· Christian Schou Køster
Use JsonSerializer to Pretty-Print JSON in .NET
Formatting JSON as plain text with proper indentation can make it much easier to include in emails or other readable contexts. Here's a quick tip/guide on how to achieve that in .NET.
· Christian Schou Køster
LXC vs Docker - What To Choose?
Building software is challenging, but ensuring it runs smoothly across different environments can be even more complex. Containers have become an essential solution for this, offering a streamlined way to package and deploy software reliably.
· Christian Schou Køster
How Port Mapping Works In Docker Compose
Learn how to use Docker Compose port mapping to manage container networking, with examples on basic mappings, multiple ports, port ranges, and advanced configurations. Perfect for solving container communication issues in any environment!
· Christian Schou Køster
A Docker Clean Up Cheat Sheet
Need to quickly clean up your Docker environment? Here's a simple list of Linux and PowerShell commands to remove old images, volumes, and containers. Just copy, run, and you're good to go 🚀
· Christian Schou Køster
Replace IF-Statements With Null Conditional Operators
Ever heard of the null conditional operator (?.) in C#? It helps make your code cleaner by safely accessing members or methods that might be null, returning null instead of throwing exceptions. A handy feature from C# 6.0! ✌️
· Christian Schou Køster
How To Connect A .NET Web API With A .NET MVC Web App?
With the world heading more and more into container services, we are changing applications into APIs communicating with each other. In this tutorial, you will learn how to connect a .NET Web API with a .NET MVC Web Application and nicely present the data with Bootstrap.
· Christian Schou Køster
How To Validate URLs With C#
Learn how to validate URLs using C# with some of my code snippets in this C# tutorial and see what options is best in terms of performance.
· Christian Schou Køster
The New Data Annotations in .NET 8
The latest LTS version, .NET 8, introduces new DataAnnotations for enhanced validation of strings and numbers. This article explores these annotations and shows you how to use them i practice.
· Christian Schou Køster
How To Improve Query Performance Using EF Core Query Splitting
In the market for optimizing your database queries using EF Core? In this tutorial I will show you a practical example of using Query Splitting, the results in SQL and give you a heads up before implementing it in your application.
· Christian Schou Køster
My Top 4 Preferred Git Branching Strategies
Looking for a brief/high-level overview of branching strategies? In this post, I will give you my top preferred branching strategies and tell you the pros and cons of choosing them and which one i would choose for what.
· Christian Schou Køster
How to use DTOs the right way in .NET
· Christian Schou Køster
A Quick Introduction To The Default Linux File System Hierarchy (FSH)
· Christian Schou Køster
What Is DevOps?
· Christian Schou Køster
How To Rapidly Evaluate Docker Images
Learn how you quickly can discover and assess the suitability of Docker images for your specific needs, ensuring a streamlined and reliable evaluation process. 🐋
· Christian Schou Køster
How depends_on Works in Docker Compose
Learn how to use depends_on with health checks in Docker Compose. This tutorial demonstrates how to enhance service dependencies by integrating health checks, ensuring that dependent services are not just started but are also in a healthy state before others start.
· Christian Schou Køster
Unix vs Linux
Explore the practical differences between Unix and Linux. No dramatic clashes or epic showdowns here, just a straightforward breakdown with memes of what sets these operating systems apart. Gain insights to make informed choices in the world of Unix vs Linux.
· Christian Schou Køster
How To Remove All Docker Images Easily On Linux
Docker simplifies application deployment, but managing images is crucial to keeping your environment clean. This quick guide walks you through the steps to remove all Docker images and free up valuable disk space.
· Christian Schou Køster
How to SSH from a Docker Container to Docker Host or IP
Looking for a way to connect from a Docker Container to an IP or a DNS/hostname? Look no further! This short step-by-step tutorial got you covered for both Linux and Windows machines.
· Christian Schou Køster
What are Software Design Patterns?
Discover how design patterns can simplify your development process. Learn the definition and benefits of design patterns in software engineering.
· Christian Schou Køster
What are Git Hooks?
Looking for a quick introduction to what Githooks is? In this tutorial, I will give you a high-level introduction and show some tips and tricks.
· Christian Schou Køster