Proper Model-View-_____ design
I’ve been reading up about Model View Controller, Model View Presenter, Model View ViewModel, and so on, and generally, the underlying concept seems pretty simple to understand: keep the pretty visuals and sciencey guts as separate and ignorant of each other as possible. No getting the logic peanut butter in the design chocolate; cool, I like that.
Usage of MVVM in iOS
I’m an iOS developer and I’m guilty of having Massive View Controllers in my projects so I’ve been searching for a better way to structure my projects and came across the MVVM (Model-View-ViewModel) architecture. I’ve been reading a lot of MVVM with iOS and I have a couple of questions. I’ll explain my issues with an example.
Strongly typed views, ViewModel and MVC
I’m learning MVC and the book I’m using favors strongly-typed views. Some of these concepts are new to me and I’m trying to better understand the design philosophy. Strongly typed views typically result in having to create a ViewModel since the domain entities are unlikely to have all the information a particular view may need. The problem is now I need to update my ViewModel whenever the associated domain entities or view changes. I also don’t see the ViewModel being much use when porting an application to another platform, say web to desktop, or web to mobile.
Strongly typed views, ViewModel and MVC
I’m learning MVC and the book I’m using favors strongly-typed views. Some of these concepts are new to me and I’m trying to better understand the design philosophy. Strongly typed views typically result in having to create a ViewModel since the domain entities are unlikely to have all the information a particular view may need. The problem is now I need to update my ViewModel whenever the associated domain entities or view changes. I also don’t see the ViewModel being much use when porting an application to another platform, say web to desktop, or web to mobile.
Strongly typed views, ViewModel and MVC
I’m learning MVC and the book I’m using favors strongly-typed views. Some of these concepts are new to me and I’m trying to better understand the design philosophy. Strongly typed views typically result in having to create a ViewModel since the domain entities are unlikely to have all the information a particular view may need. The problem is now I need to update my ViewModel whenever the associated domain entities or view changes. I also don’t see the ViewModel being much use when porting an application to another platform, say web to desktop, or web to mobile.
Should UserControl’s be Views in an XAML MVVM application (WPF or Store app)?
I am about to use Caliburn.Micro for a new XAML Store app (not sure what to call it nowadays – does not appear to be called a “Windows Store app” any longer).
Hierarchical ViewModels and tracking IsDirty/PropertyChanged events
I have a set of ViewModels depicted like in the below picture.
Hierarchical ViewModels and tracking IsDirty/PropertyChanged events
I have a set of ViewModels depicted like in the below picture.
Hierarchical ViewModels and tracking IsDirty/PropertyChanged events
I have a set of ViewModels depicted like in the below picture.
Designing entities that should be mutable through the GUI but protected from programmer error
I have a set of entities, for now represented by very simple classes (further simplified for this example):