Advertisement

IronNails = Silverlight + IronRuby + Patterns

If you already pay attention to the IronRuby dev group and are on the distribution list, apologies for the dupe.  I’ve just got back from a camping trip and rifling through all my emails now.  I checked in on the IronRuby group and noticed a new project emerging from someone.

It’s from Ivan Porto Carrero and he calls it IronNails.  It was previously called something else (quite frankly I liked the other name better myself) but there was already a project named after his chosen name.  So alas, IronNails it is!  Ivan describes this as:

IronNails is a framework inspired by the Rails and rucola frameworks. It offers a rails-like way of developing applications with IronRuby and Windows Presentation Foundation (WPF). This framework uses the pattern Model - ViewModel - View - Controller (M-VM-V-C). It should be able to run on both WPF and Silverlight.  The idea is that the views can be created using a design tool like Blend for example and just save that xaml as is. The designer should not need to use anything else than drag and drop to create a GUI design. The behaviors are then added to the view by using predefined behaviors in the framework or by defining your own behavior. Source: IronNails GitHub homepage

The project is really just started so don’t expect a ton of meat there just yet, but it has a great goal and I can’t wait to see it evolve.  Ivan’s using the Rails-like framework of MVC where the XAML can serve as the view for either a WPF or Silverlight application.  The idea being that someone can create a view using a rich interface design surface like Expression Blend and write the code that targets the view which can be fine tuned to either Silverlight or full WPF.

The vision is something like this:

   1: class MyController < IronNails::Controllers::Base
   2:  
   3:   view_object :some_model, :refresh => :refresh_some_model, :refresh_interval => 2.minutes
   4:  
   5:   view_action :some_action, :target => :my_button, :action => :some_action_implementation
   6:  
   7:   def refresh_some_model
   8:     # code here
   9:   end
  10:  
  11:   def some_action_implementation
  12:     # code here
  13:   end
  14:  
  15: end

If you are interested in contributing or lurking, get on over to GitHub and watch the project!


This work is licensed under a Creative Commons Attribution By license.

  1. 8/4/2008 4:50 PM | # re: IronNails = Silverlight + IronRuby + Patterns
    Great post Tim,

    I'm not on the IronRuby list, so this is def. interesting info.

    I've been focusing on how to "write code designers can work with", and think that should be an important design goal when creating Silverlight applications. Way to often do I download sample applications from the web that either don't work in Blend, or doesn't look anything like the running app (no dummy test data etc). To be able to take advantage of the designer-developer workflow we as developers need to write code that is "designable".

    I've been blogging about how the viewmodel pattern and dependency injection can help you achieve this over at

    http://jonas.follesoe.no/YouCardRevisitedImplementingDependencyInjectionInSilverlight.aspx

    http://jonas.follesoe.no/YouCardRevisitedImplementingTheViewModelPattern.aspx

    Cheers,
    Jonas
  2. 1/25/2010 9:32 PM | # re: IronNails = Silverlight + IronRuby + Patterns
    Hi..Do I have a question?..is possible use expression blend w ironpython or ironruby right now?..there are any tutorial how do it?..thanks!!

 
Please add 6 and 7 and type the answer here:
First time here? You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting! (hide this)