Programming

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

Reading Roundup

Only the finest material makes it to thegoldenmule's Reading Roundup series. This time, I even included a video for you folks that can't read!   Predicting the Future, by Alan Kay http://www.ecotopia.com/webpress/futures.htm This is the one where Kay famously says, "the best way to predict the future is to invent it." And it's brilliant. I […]

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<T, TResult> Memoize<T, TResult>(this Func<T, TResult> func) { Dictionary<T, TResult> dict = new Dictionary<T, TResult>();   return input => { if (!dict.ContainsKey(input)) […]

More