C#

Ninject and Unity

The Background I have searched high and low for a good dependency injection solution that works well with Unity, even when AOT’d. Unfortunately, even my most brilliantly worded Google queries have rendered fruitless results. I’m a little bit ashamed to admit this, but I even tried ‘Binging’ it. A host of full blown, .NET DI […]

More

More Memoization

I had to cache the results a couple methods recently, and only after I had done it a few times, I realized I should just write a memoization extension for System.Func. public static Func Memoize(this Func func) { Dictionary dict = new Dictionary(); return input => { if (!dict.ContainsKey(input)) { dict[input] = func(input); } return […]

More

Reading Roundup

Loyal followers! I’m not dead! In fact I’ve been working away on a few cool projects, but I’m not quite ready to divulge. Anyway, I thought I would post about a few different resources I’ve been reading through lately:   A Conversation with Anders Hejlsberg You have to read every word. Seriously, stop reading this […]

More