November 2010 Blog Posts

The MVVM Pattern Using F#

The MVVM (Model View View Model) design pattern is a popular way to create WFP (or Silverlight or Windows Phone 7) applications.Despite the obscure name, the design pattern is surprisingly simple. Basically, the programmer creates a view model which is bound the the view (i.e. the xaml) via WFP binding model. Thanks the WPF’s two way bindings, the INotifyPropertyChanged interface and the ObservableCollection<T> there’s very little need for any other direct interactions between the view and the bound model. I had the idea to use F# to implement the ViewModel, the object that exposes the values that xaml is...

The Future of F#: Type Providers

I watched with interested Don’s talk at PDC. This blog post is to help me put in perspective some of my initial thoughts on what type providers are, I’ve tried to write it so you don’t need to see the video of the session first, but obviously it will help if you have. Some of this is just my speculation – I have no insider information so I can speculate, but don’t take everything I say too seriously. The talk gave a preview of “Type providers”, an experimental feature in F# that will appear in a future version of F#....