Not magic, just a different kind of science.
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 […]
MoreJust a Thought: Virtual and Final as Contracts
Virtual. It's a language feature that I've decided I have understood incorrectly for awhile-- but it's not completely my fault... See, a large part of my professional career has been in Java Land where the virtual mechanism is a quiet little assumption sitting off by itself in the corner. All methods are virtual by default […]
MoreMore 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<T, TResult> Memoize<T, TResult>(this Func<T, TResult> func) { Dictionary<T, TResult> dict = new Dictionary<T, TResult>(); return input => { if (!dict.ContainsKey(input)) […]
MoreReading 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