Kiss This

It's time for Mono. MonoState objects. MonoState This is a design pattern I found, and then later found this name for. When I originally found the pattern I was calling it a WrappedSingleton because... it's a Singleton that's "wrapped" in a class…

Well... Well... Well...

Time to put my code where my mouth is; it's a big mouth. I've put my core code of MtgDiscovery.com (version 2) up to be able to blog about. I don't have the code base. Much is currently stripped out. The repo is…

I used IEnumerableAsync SO WRONG

This ties to my site https://MtgDiscovery.com - A shock, right? Sometimes I have to update sets and re-ingest data. This happens a lot when the feed doesn't align with how I collect the cards. Best example is when the size of the set represented on the…

Exception Re-Throw

I've written about the proper way to re-throw an exception before https://quinngil.com/2022/07/28/exception-throwing/ and now I have an update. I created myself this extension method to encapsulate this throwing mechanism AND to help ignore the need for the unreachable throw. public static class…

CosmosDb Abstraction

CosmosDb components are a pain to test. There's almost a 1/2 dozen objects to fake and configure to be able to get back the object you want to then do work on for the test. This can be abstracted from the test and hide the complexity in…

A MONTH!?

It's been a month... SIGH oh well. I'm bad at this. What have I been doing? Lots of ... stuff? OK; not much. Let's check my MtgDiscovery.com git history and see if anything interesting is going on there... Nope. Not a lot. Probably would…

DB Swap

Last post I mentioned about swapping the DB for some data. Well... I've done it. Mostly done it. I've got code written for it. I still need to get the IaC set up for the DB and connection strings... blah blah... I got the code ... some…

TDD - It's not just for testing

I have to rework a huge piece of my site (MtgDiscover.com) for collecting magic cards. Specifically, the cosmos document for my collection got to big. So I need to switch to Azure SQL. I have 4 queries that run against my collection document. They are very basic. Any additional…