There was such a question. Because of the large number of objects, the question arose whether to bring them into another class and announce in another class? Consequently, due to the large number of objects, a large number of listeners and functions appeared. Do I also need to take them outside the class, create an interface and a class with functions for them?

  • The question is too vague, it is difficult to advise something specific. Just randomly making code to other classes is a bad idea. Best of all - guided by kl design patterns. For example, you can try to use MVP - i.e. bring logic to the presenter. Then, from it, logic can be carried out into interactors and repositories, following чистой архитектуре . - Yuriy SPb

0