Since most of the WinFX (.NET) world is going to declarative programming, I think it would be wise for us API designers to starting thinking the same way. Xaml is really our key to that. We don't need to have our own XML dialect to provide a declarative model to developers, we just need to realize that Xaml isn't just a markup language for graphical controls... nor is it solely for Microsoft created frameworks (i.e. WPF, WWF). We too can tap into the beauty of Xaml by simply understanding how simple it is.
In this video I demonstrate how to create a simple data-bound WPF application using Xaml using a C# class to feed the data. Then I alter the WPF application to be purely in Xaml... even the data binding to LLBLGen.
This video is really just a proof of concept of something that I personally consider very experimental at this stage. In the future however, I do expect most WinFX coding to go hand in hand with declarative programming. In fact, you can already see how ASP.NET, Atlas, WPF, WCF (the config file), and WWF are strongly declarative based. Since Xaml is not much more than an XML representation of .NET objects, exposing an API shouldn't be that difficult for us. Most of the time I'm sure a simple framework built with SOA principles in mind should be OK.
Here's the link to download the video:
- Using Xaml to Represent Objects (Google Video) - Recommended for all users
- Using Xaml to Represent Objects
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
0 Comments:
Post a Comment