Azure Function Logging

There's a few resources out there about customizing the logging of Azure Functions... but none worked for me. I mean, one worked. This blog post. Even it doesn't SPECIFY the setting, just assumes it'll be inferred. Well... I did. But I'm going to put here how to customize the logging…

Exception Throwing

I don't do a lot of exception handling. I write code that avoids it as best as it can. The edges of my systems are out of my control. The edges of my system do throw exceptions. If I can't do the correct thing for the exception, I bubble the…

Azure Powershell... Grrrr

I'm working on re-writing MTG Discovery and doing all of the infrastructure through Azure PowerShell. It's great... I like it... but fuck... If I'd known how much friction I'd run into for various bits, I'd have gone with using the Azure CLI. I don't want to bash on the product,…

RETURN OF THE IMOCK

I did a twitter where I mentioned I'd updated my IMock packages. These are for Nuget and ReSharper. What the fuck is IMock? First - Rude. I wrote about it a couple years ago when I did an IMock Announcement. Which... on review... I dropped the fucking ball. I didn't…

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 should be pretty sweet.…

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 we do. Second time…

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 as follow…

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 things more similar" we have to consider refactoring these…