YADNC3JSG–Yet Another .NET Core 3.0 JSON Serializer Gotcha
Previously I wrote about several “gotchas” in the new JSON serializer that is built in to .NET Core 3.0. Another one has cropped up, but it is different enough that I thought it warranted its own post. Type Promiscuity via GIPHY Back in 2010 or something like that, Ted Neward gave a talk about JavaScript … [Read more…]
Logging in a .NET Core 3 SignalR client
SignalR is part of the .NET Core framework that allows for real-time communication between a server and any number of clients. The traditional example is a JavaScript client that can receive updates directly from a web server asynchronously, but you can also connect to a SignalR hub with a C# client. via GIPHY HubConnectionBuilder To … [Read more…]
.NET Core 3 unit testing project sdk
I was following the new .NET Core 2.2 –> 3.0 upgrade document, but when I updated my unit test project files, I accidentally set the SDK to Microsoft.NET.Sdk.Web because that’s what my ASP.NET Core 3.0 web project was. via GIPHY The unit tests still ran and worked… for the most part. One of them failed, … [Read more…]
.NET Core 3.0 Upgrade–New JSON Serializer Gotchas
With the release of .NET Core 3.0, everyone needs to start thinking about upgrading their existing .NET Core 2.2 apps right away. Not only because .NET Core 3.0 has a bunch of performance gains that you’ll undoubtedly want to take advantage of, but also because support for .NET Core 2.2 ends mid December. Microsoft’s new, … [Read more…]
Reginald
This past weekend I had to say goodbye to my cat, Reginald. He was an amazing cat, and it was the hardest thing I’ve ever had to do. I wanted to take a break from writing technical stuff to have a dedicated piece of the Internet to my boy. After getting engaged, my bride-to-be Jennifer … [Read more…]
Unit Testing Common Logging with Moq
Sometimes there’s a path in a service or application that you want to test where all it does is log something and return. You could check other things, but sometimes it is hard to check to see if something didn’t happen… and it would be a lot easier to know if something did happen, like … [Read more…]
BitConverter–How to deal with bytes!
When you’re writing an API that deals with a TCP client, you need to talk data in terms of byte arrays. via GIPHY BitConverter BitConverter is a class in the System namespace that lets you convert numerical data types (and single chars) to and from their byte[] counterparts. In order to convert to a byte[], … [Read more…]
Unit Testing bit fields
Last week I wrote about bit fields and how they can be used to easily track boolean values. Unit testing is pretty important to me, because I make mistakes a lot. By writing tests, I can have a little bit of confidence in the code that I wrote. via GIPHY Bit Fields Knowing how bit … [Read more…]
Bit Flags
Bit flags aren’t probably something that you think about in traditional/modern software development. You might if you are in the IoT space, but if you have the pleasure of a ton of RAM, you probably aren’t super concerned with saving space. However, recently I’ve been thinking a lot about network communication and how to minimize … [Read more…]