Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MVC + BDSM = MVVM?

DAloG
July 06, 2015

MVC + BDSM = MVVM?

Overview of architecture principles applied to Apple MVC. Common pitfalls and our vision of iOS Architecture evolution

DAloG

July 06, 2015
Tweet

More Decks by DAloG

Other Decks in Programming

Transcript

  1. Code is a set of entities that can store and

    transform data. Code is a set of entities that can store and transform data.
  2. Design is a set of relationships between entities. Design is

    a set of relationships between entities.
  3. Bad Sprint 1 Sprint 2 Sprint 3 Design 1 Design

    2 Design 3 + + Code = Design =
  4. MVC

  5. Controller binds view to model data. Controller call model actions.

    Model change it’s data. View hook up changes.
  6. Model data is enough to fill UI Model store intermediate

    state View can animate from state to state
  7. Code review B, D and S Architecture has priority over

    feature Task can`t be closed without code review.
  8. BDSM Use bindings for model observations Delegate all process handling

    to Model Delegate all state handling to Model Keep all code in project consistent.