The Vision

Programming. It's good stuff.

C# Multiple Dispatch

Here is an article (with accompanying program) demonstrating double dispatch method invocation in C#. Read on if you find yourself frustrated with the limitations of traditional virtual method overriding, or if you're just fond of techniques that utilize reflection.

Unit Testing Stdout

I put up a simple example of testing Ruby code that writes to the console. This type of information is available elsewhere, but I'm adding this here in the hopes that someone, somewhere, at some point, will find it when they need it.

An Overdue Update

Version 0.2.0 of the RubyImporter Spotlight importer is now available as a Universal Binary. I am also making the source code available (BSD license) as I took the time to clean it up a bit. Note that it is, by and large, straight C. This means that it doesn't really take advantage of any OS X framework, but, on the plus side, it should be very straightforward to modify to suit anyone else's Spotlight importing needs. For a very different take on how to program a Spotlight importer, take a look at the Python importer from Toxic Software. It is largely written in Python, and, way back when I wrote my first importer, it was helpful to have as a reference.

A Small Release

I didn't plan on releasing anything like this, but I imagine there may be other Ruby programmers who use OS X's Spotlight feature. This is a very rough Spotlight importer that handles Ruby script files. RubyImporter extracts metadata for classes, methods, and modules. You can now use plain-text searches to look for Ruby scripts, or you can use Finder's Find interface for very specific searches.