Talking with Steve Sanderson, John Papa and Jon Galloway about Knockout.js
and client side JavaScript programming.
- KnockoutJS Home
- Steve Sanderson’s Home Page
- John Papa’s Home Page
- Jon Galloway’s Home Page
- Knockout Tutorials
- Pluralsight Course on Knockout
- Single Page Applications
Call in comments: 1-347-YAP-CAST
John Papa compared KnockoutJS to XAML data binding, but he mentioned that his comparison wasn’t quite accurate. The thing that XAML data binding is missing is dependency tracking. XAML uses change notification, which is completely manual. When FirstName changes, you have to write code to notify XAML that FullName has changed.
I’ve been doing dependency tracking for many years. I’ve recently started a project called KnockoutCS to bring KnockoutJS-style dependency tracking to XAML. Here’s what I have working:
private void MainPage_Loaded(object sender, RoutedEventArgs e)
{
dynamic model = KO.Observable(new Model());
DataContext = KO.ApplyBindings(model, new
{
FullName = KO.Computed(() => model.FirstName + " " + model.LastName)
});
}
Where the model is simply:
public class Model
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
Much easier than INotifyPropertyChanged.
Is there a reason that i cant download this podcast via zune from switzerland?
cheers