Quantcast
Channel: Is a preferences editing GUI a good use case of a object deep copy? - Software Engineering Stack Exchange
Browsing latest articles
Browse All 5 View Live

Answer by pjc50 for Is a preferences editing GUI a good use case of a object...

So this is where I feel it would help to introduce you to a bunch of OO UI terminology, such as "model-view-controller" and "model-view-viewmodel", as well as the concept of a "DTO" (data transfer...

View Article



Answer by gnasher729 for Is a preferences editing GUI a good use case of a...

Forget about “deep copy”. If you want to edit an object in your GUI you make a copy that is just deep enough to be edited without affecting the original, and no deeper. You want an editable copy.For...

View Article

Answer by Doc Brown for Is a preferences editing GUI a good use case of a...

There is nothing inherently wrong in making a copy of some object when you need one. If the object is a complex, hierarchical one, with mutable child objects, this copy operation has to be a "deep...

View Article

Answer by J_H for Is a preferences editing GUI a good use case of a object...

Yes.(1.) Working with a deep copied object, prior to the user committingto changes, is a good fit for your requirements.(2.) Suppose your requirements mention that when user selectsDark / Light theme,...

View Article

Is a preferences editing GUI a good use case of a object deep copy?

A conceptual question... I have a XML configuration file used to set various behaviours in an application (colours, supressing help prompts etc). On starting the application, the XML is deserialized...

View Article

Browsing latest articles
Browse All 5 View Live


Latest Images