E
E
Empty User2017-11-24 17:58:35
Objective-C
Empty User, 2017-11-24 17:58:35

What is the best pattern for Swift development?

I work as an ayocer and take orders, no one complains. Developed more than 10 applications (orders), and even more (for myself). Everything works well, but after one case, when I transferred the project for further support to another ayoser, who said that I had chaos and the project was stupidly not expanding, as a result, he himself supported this application. But the sediment remained, and it seems that I'm doing everything wrong ... I'm developing a template popularly called pseudo-MVC, and everyone around is talking about VIPER and MVVM.
1) What design pattern would you recommend? Which one do you use yourself?
2) I myself think now to study VIPER. Is there any good literature on this pattern?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-11-24
@dimash07

Everything works well, but after one case, when I transferred the project for further support to another ioser, who said that I had chaos and the project was stupidly not expanding, in the end he himself was involved in supporting this application

well, check with the programmer what comments he has, or find a person on the side who will review your code. And draw conclusions from the results
and what about the template?
Firstly, you cannot take one pattern and shove it into all projects and think "this is the right way to do it." This is never right. A pattern is a solution to a specific technical problem, and accordingly, whether to use a particular pattern or not should be decided solely on the basis of the problem.
Secondly, the mere presence of any patterns does not mean that your code is good or bad. The quality of the code depends on many factors, ranging from the style of naming variables and functions to the observance of the principles of the paradigm in which you work.

B
briahas, 2017-12-01
@briahas

Before that I used MVP(resenter). Lately I've been switching to Coordinators.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question