D
D
Denis2019-02-27 19:02:22
Android
Denis, 2019-02-27 19:02:22

Which is better and why: One model with a long life or several with short ones?

I understand that there can be no universal solutions, but here is the question:
In Android development, what do you prefer and why: One data model with a lifetime equal to the lifetime of a single activity (when the entire application is built on fragments, and the activity in the singular represents a host for fragments) or models for each fragment where the data is used?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2019-02-27
@zagayevskiy

Of course the second. The first is impossible on any large application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question