Green field
RSS FeedA shinny new blog about programming stuff... probably mostly .NET, maybe some Javascript, Flutter, Python and some other bits and bobs though.
Featured
Revenge of the Extension Members in C# 14
Published: at 11:42 AMThe third in a series about things that you can do in JavaScript which are not so easy in C#. This post continues our earlier exploration of dynamic properties, presenting the ultimate solution now that we have Extension Members syntax in C# 14 🥷🏻
Detecting blocking calls using async in C#
Published: at 03:51 PMEven when you know that blocking calls in async code should be avoided, how can you be sure there aren't any blocking calls in your application? Can you trust all of your NuGet dependencies? 🫣
Catching async void exceptions in C#
Published: at 07:29 PMOne of the big reasons to avoid `async void` methods is that exception control flow statements don't work... so it can crash your whole application. But what if we could catch those exceptions? 🥷🏻
JavaScript Envy in C# - Duck Typing
Published: at 12:31 PMThe second post in a series about things that you can do in JavaScript but that are not so easy in C#. This post dives into duck typing... 🦆
JavaScript Envy in C# - Dynamic Properties
Published: at 03:22 PMThe first in a series about things that you can do in JavaScript which are not so easy in C#. In this post we explore how properties and methods can be added dynamically to JS objects... and how to hack C# to do the same 🥷🏻