Re:Learn the MVVM pattern and knockout.js quickly with in-br...
by kenjackson on Tuesday July 19, 2011 @01:33PM
(#2782026)
I'm sure there must be a template for this where you can see pretty intimately how it works and completely change it. In WPF land they're lookless controls. The databinding gives you a local copy of an object that is updated (via things like INotifyPropertyChanged) and then templates render it. There's no magic. Just a lot less code to write.
Re:Learn the MVVM pattern and knockout.js quickly with in-br...
by stevensanderson on Tuesday July 19, 2011 @12:10PM
(#2781515)
Oh, that kind of databinding. That doesn't really bear any relation to what knockout does :)
Re:Learn the MVVM pattern and knockout.js quickly with in-br...
by ncarlson on Tuesday July 19, 2011 @04:43PM
(#2782989)
I see what you're saying. Yeah, one certainly needs to be careful with those sort of high-level abstractions. I remember when I first started learning WPF, I ran into the exact problem you described. I had a data grid bound to an sqlite database. Without optimization, every row update was making three of four calls to the database. When there were a few thousand records, the UI would screech to a halt.
It is a really quick and easy way to do things (and I don't question how amazing it is in its depth of ability). But it creates almost constant chatter as the grid is reflecting all changes off the database.