~/talk

MVVM as good (anti)pattern in iOS

Talkat RS Conf 2019 · 2019-08-09..08-11· [android]
slides:none on file

Argues that MVVM on iOS often breaks SRP by stuffing networking, formatting, delegates and persistence into view models, gives concrete metrics from a real app: 255,000 LOC, 6,000 Swift files, 8,200 unit tests, 204 view controllers, 99.2% coverage, average file 37 lines, only 88 files >100 lines, demonstrates splitting into many small view controllers and services, shows bindings versus closure pitfalls and a demo app where sharing a view model caused retain bugs, recommends using view models as simple dump struct and separate services.

AI-written summary · about

  1. 0:00Intro
  2. 1:49WHY anti pattern? What's wrong with MVVM?
  3. 3:07Let's start from the beginning
  4. 4:30Windows Presentation Foundation is a graphical subsystem created by Microsoft for rendering user Interfaces in Windows-based applications.
  5. 4:40Basic approach of MVVM in WPF
  6. 7:402 different definitions
  7. 9:39What is wrong with it?
  8. 11:36View model is a model for a view, isn't it?
  9. 12:29What about those action methods?
  10. 13:12MVC - Many View Controllers
  11. 15:17Real life bugs
  12. 19:54How many view controllers are there?
  13. 21:43"Get rid of Massive ViewController"
  14. 22:00small View Controller + ...
  15. 23:06"MVVM makes my apps more testable"
  16. 24:11"Because it's so popular and it's a perfect solution with RxSwift"
  17. 25:16Disadvantages
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.