V
V
Votetoda2018-08-01 13:17:21
Objective-C
Votetoda, 2018-08-01 13:17:21

How to write clean forked code?

Good afternoon, I have a constant problem when writing large projects, the fact is that there is a conditional MainViewController, this is the main view on which all actions take place, there are constraints anchors, all stages, pusher, I use moya to reduce actions, Large interface, with many activities that follow each other. The problem is that I'm trying to pass part of the function to other classes, but still, in the end, the MainViewController has more than 1000 lines in the file, How can I fork it? let's say there is a tableView inside that has stupid cases that change the same interface state and the code got huge, say delegate cell for row at indexpath to another file? without describing it all in one file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Sh, 2018-08-01
@Votetoda

Read the Clean Architecture book, look at the Clean Swift, Viper architectures.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question