Setup GitPod for Vue.js Development

GitPod is a cloud-based development environment which can be used to work with a variety of frameworks, including Vue.js. It is designed to be quick to spin up new instances of a development environment through automated scripts. One of the advantages of this is that it reduces the chance of encountering issues due to differencesContinue reading Setup GitPod for Vue.js Development

Will WebAssembly (Wasm) replace JavaScript?

Ever since JavaScript was created in 1995 it has formed a key part of providing interactive experiences on websites. However, since WebAssembly (Wasm) support is now available in major browsers, will it be able to hold out against the competition, or will WebAssembly replace JavaScript as the essential tool for client-side development on the web? IContinue reading Will WebAssembly (Wasm) replace JavaScript?

Duplicate Validation Messages with FluentValidation in ASP.NET Core 6 MVC

Validation is an important step when handling data from a request in ASP.NET Core 6. FluentValidation is a popular .NET library which can make validation your models easier. It allows you to define your validation rules in a single place and integrate custom logic for your validation, which would require you to make a newContinue reading Duplicate Validation Messages with FluentValidation in ASP.NET Core 6 MVC

Add Git Information (and more) to Windows Terminal (or PowerShell)

I’m a fan of Windows Terminal – it makes it easier for me to manage my terminal windows in a tabbed interface and makes it easy to access a terminal for either my Windows machine or the WSL guest in one interface. But sometimes, it is useful to add a bit more context to yourContinue reading Add Git Information (and more) to Windows Terminal (or PowerShell)

Configuring a Vue.js SPA with Environment Variables

In a previous blog post I showed how to set up ASP.NET Core Web API to support a Vue.js client SPA. In this post I will show how to extend on that example so that the Vue.js SPA supports a development and production configuration. Since I am extending the previous example, I am assuming theContinue reading Configuring a Vue.js SPA with Environment Variables

Supporting Multiple WS-Federation Authentication Schemes in ASP.NET Core

ASP.NET Core allows you to add support for multiple authentication schemes, such as social auth providers or WS-Federation. This support can be added with or without ASP.NET Identity Core. Users can then use these schemes to authenticate with your web application. While adding support for social authentication providers (such as Twitter and Facebook) is useful,Continue reading Supporting Multiple WS-Federation Authentication Schemes in ASP.NET Core

AI Assistance for Software Developer Productivity – The Good, The Bad & The Ugly

Software Development can have moments of writing repetitive code. Following the DRY principle can help avoid this, but sometimes one block of code isn’t doing the same thing as another, although it is doing something similar (such as mapping objects in a collection). In these cases AI can be a helpful aid, but it doesContinue reading AI Assistance for Software Developer Productivity – The Good, The Bad & The Ugly

Logging in .NET Core using ILogger

Logging is an important part of software development. It helps us know that tasks have been completed, monitor applications and provides a trail to follow when things don’t work. Microsoft has included a logging framework in .NET Core and ASP.NET Core to allow developers to easily implement logging and choose their own logging provider (thisContinue reading Logging in .NET Core using ILogger

Using a Vue.js SPA with ASP.NET Core Web API

I recently started working on a new side project and decided to implement it as a single page application (SPA). For this, I chose to build an API powered by an ASP.NET Core Web API and a Vue.js powered front-end to consume the API. I could find templates included in Visual Studio for AngularJS andContinue reading Using a Vue.js SPA with ASP.NET Core Web API

Handling null values in C#

Handling null values in C# and .NET comes with the territory. Null values were introduced by Tony Hoare in mid-1960s to represent missing or unknown data. This is a useful capability but it has resulted in null reference exceptions becoming one of the most common causes of bugs which developers face. As a result, Tony Hoare now calls the nullContinue reading Handling null values in C#