The Stochastic Game

Ramblings of General Geekery

Posts with tag '.net'

    MongoDB for Lucene and ASP.NET

    My latest home project (yet to be announced) is using MongoDB for storage, which led me to write a couple of libraries you may be interested in if you use that kind of database. Keep reading for the details. MongoDB directory for Lucene MongoDB.Lucene is what you would expected given the name: a MongoDB backend for Lucene indexes. It’s a simple port of the standard FSDirectory using Mongo’s GridFS storage. I’m sure there’s a lot of room for improvement (performance, storage efficiency, lock reliability), but it’s working well enough for small applications.
    Read more...

    IEnumerable is awesome

    I’ve always thought that one of the most underrated features of C# is the yield statement and its companion, IEnumerable<T>. It may be because I’m working a lot with people coming from an exclusively C++ background – it takes some time to adapt to a new language with new paradigms, especially when that language can look a lot like “C++ without delete!” at first. But there are so many wonderful constructs in C# (especially in the past couple versions) that it’s a shame when people keep writing code “the old way”…
    Read more...