~/talk

MVVM as good (anti)pattern in iOS

Talkat RS Conf 2019: Mobile People Day · on Friday, 2019-08-09· [frontend-architecture]
slides:none on file

Argues MVVM’s origin in WPF and shows how iOS ports often become a dumping ground that breaks SRP, inflates view models and hides complexity. Gives concrete numbers: 255,000 lines of Swift, ~6,000 Swift files, 99.2% coverage, 204 UI view controllers, only 88 files >100 lines. Builds a list/detail demo where a closure creates a closure retain-cycle crash; replacing closures with Rx-style bindings plus proper disposal prevents the crash. Recommends tiny view-model structs, services for networking, and many small child view controllers.

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.