Calculate the Moon Phase With C#

Calculate the Moon Phase With C#

Space: the final frontier. Or at least a topic all developers can enjoy. The most prominent heavenly body in the night sky is the Earth’s Moon, the only natural satellite the Earth has. The moon does many things; amongst them...

Serialize Interface Instances With System.Text.Json

Serialize Interface Instances With System.Text.Json

On the spectrum of “chill” languages, JavaScript is on the higher end of permissible syntax. The ability to patch together a disparate group of values and treat them as one collection can help developers “get stuff done”. C# and .NET...

ASP.NET Core Localization Jump Start

ASP.NET Core Localization Jump Start

Language is a core component of the human condition. According to the Washington Post, at least 50% of the world’s population is bilingual. That’s a fantastic statistic, that means every second user to our application could be bilingual. Sadly, most...

MVVM With Xamarin.Forms and JetBrains Rider

MVVM With Xamarin.Forms and JetBrains Rider

My journey into the world of Xamarin.Forms continue, and recently I have been exploring the Model View View Model (MVVM) pattern and how it changes a solution’s profile and my approach to building mobile experiences. One of the most critical...

Remove Rows From Razor HTML Tables

Remove Rows From Razor HTML Tables

The tried and true spreadsheet is the king of all business application user experiences. On the web, we’ve been able to recreate and dress-up the spreadsheet experience using HTML table tags. It’s a common design choice in many create, update,...

Use TempDataAttribute For Clean Code

Use TempDataAttribute For Clean Code

In a previous post, I wrote about solving the form resubmission confirm issue that many developers run into when building web applications. In ASP.NET MVC, we have many tools at our disposal to pass information from one method to another,...

Use Range and Index In C# 8

Use Range and Index In C# 8

The C# of today has progressed in exciting ways, and for the benefit of the development community. C# 8 is one of those releases where the sum of its parts add up to something great. In this post, we’ll be...

Dispose Resources Asynchronously With IAsyncDisposable

Dispose Resources Asynchronously With IAsyncDisposable

It’s no secret that JetBrains Rider is my IDE of choice. The JetBrains team’s ability to stay current with language additions has helped me keep my C# knowledge relevant in a fast-paced world. It’s always exciting to see refactoring recommendations,...

Use Select Dropdown In ASP.NET Razor

Use Select Dropdown In ASP.NET Razor

ASP.NET’s Razor engine comes with an assortment of HTML tag helpers. Some of the helpers are straightforward, while others may be challenging for folks to grasp. One of the more powerful HTML elements is select, allowing us to select a...

Building HTML with C#

Building HTML with C#

Hypertext Markup Language is the first programming language many of us learn. Like chess, it’s easy to learn but can take a lifetime to master. Its declarative syntax is ideal and ubiquitous across many different ecosystems, and C# embraces it...