mmstick / gtkrs-tutorials

2021 Tutorial for GTK-rs
38 stars 4 forks source link

Question: ToDo app doesn't separate view and model -- best practice, or intermediate teaching step? #3

Open EndilWayfare opened 3 years ago

EndilWayfare commented 3 years ago

Is using the gtk widgets both as user-facing display and program-facing source-of-truth "the good idea", or is it just a first-order solution used to not introduce too many ideas at once? Will later chapters suggest and demonstrate using a (perhaps Rust-native) separate model to store canonical state that pushes updates to the view?