Azure AppConfig and KeyVault

Another quickie post. As I'm working through powershell for my IaC I saw that AppConfig can access secrets stored in KeyVault. This means I get to put my secrets into a keyvault... and then just reference the keyvault! It's like the AppSettings can reference keyvault. This…

Azure B2C - WHY?!

With my original Mtg Discovery site (mtgdiscovery.com) I looked into using Azure B2C for auth... HAHAHAHA... No. It was faster/easier to roll my own JWT creation/validation. Pretty messed up when roll your own is easier. I'm creating V2 of the site. That's what…

EXPENSE REPORT KATA

Today I was introduced to a new kata - The Expense Report! https://github.com/christianhujer/expensereport Being in the corporate world, sounds like a good kata to give a go. I'll be doing it in C#, shocker, I know. The process of the kata is laid out…

Refactor Money with TDD - 04

Still Green; Keep Refactoring Let's take another look at Money;  there's eight methods. Five of these methods delegate the work to another object, "I know what I want, you know how to do it". The remaining three don't. To make "Similar…

Refactor Money with TDD - 03

GET TO THE PRIMITIVE While we very much want to avoid data flowing through our system, sometimes we need them. Sometimes we have to get back to a primitive type. This happens at the boundaries of our system. When our code passes to some other code, we probably have to…

Refactor Money with TDD - 02

No Primitives - Again Since we're poking around the ExchangeRates area, one thing has stood out to me. public interface IExchangeRateTo { double To(Currency currency); } This interface has a method that returns a double... a Primitive. That's ... Nooooooo! What can we do to fix this? Clearly…

Refactor Money with TDD - 01

BONUS TECHNIQUES Let's look at some bonus techniques I use when working in projects. * PrivateCtor - Utility class to access private constructors * No Primitives - Exchange Rate returns a double * MicroObjects - We haven't hit the size limit yet; let's explore that. * ToSystemType -…

Make Money with TDD - 08

No Primitives I'm VERY against primitives' being passed around in a system. As soon as I started putting in hard coded strings of the currency I knew it'd have to be extracted out into something that's not a primitive. I didn't…