What’s Up With Castle - Week of April 30, 2007

Sorry I missed a week there. There wasn’t a whole lot going on other than JIRA fixes.

ActiveRecord

  • Support for NHibernate’s Subselect Fetching Strategy [svn]:NHibernate supports the ability to load multiple collections in parallel. This can improve performance when loading related collections based on sub-select criteria. The Hibernate documentation has further explanation.
  • Validation Error Messages [svn]: Added support for overriding the default validation error messages from strings located in resource files. There are several home-grown implementations of this (including the one I wrote) but it’s nice to finally have support for this out of the box.

MonoRail

  • Visual Studio NVelocity colorizer: Here is one of the two NVelocity Visual Studio 2005 add-ins currently in development. It’s not finished yet, and has several show-stopping bugs, but it’s a good start. I messed around with the Visual Studio SDK about a year ago and can attest to the difficulty in working with it. There’s a lack of documentation, and the examples included with the SDK were less than transparent.

Windsor

  • Series of Articles on Using Windsor: An excellent set of short tutorials on how to use various features in Windsor. I love the fact that these are really bite-sized. Each contains only a few paragraphs of text and some relevant source code. However, they are exceedingly effective at demonstrating Windsor’s power. (I should really link directly to Alex’s blog, but can’t find a nice way to go directly to the relevant posts.)

Contrib

  • Screencast on Using CodeGenerator and ActiveWriter: Shows the basics of both of these projects and why you might want to use them in your next Castle foray. If you’ve never used either it’s worth 20 minutes of your time. In case you are unfamiliar, CodeGenerator is an MSBuild task for generating strongly typed wrapper classes for your controllers and views. ActiveWriter is a Visual Studio file type used to create ActiveRecord models using a visual designer (similar to the class designer).