MVP em Swift (Erick Vicente)

19
MVP em Swift

Transcript of MVP em Swift (Erick Vicente)

Page 1: MVP em Swift (Erick Vicente)

MVP em Swift

Page 2: MVP em Swift (Erick Vicente)

MVP

Conteúdo- Padrões de Arquitetura- Visão Geral de MVC- MVP- Teste

Page 3: MVP em Swift (Erick Vicente)

Padrão de Arquitetura

Solução reusável para um problema comum na arquitetura de software em um determinado contexto

Page 4: MVP em Swift (Erick Vicente)

Padrão de Arquitetura

● MVC● MVP● MVVM● Viper

Page 5: MVP em Swift (Erick Vicente)

Padrão de Arquitetura

Consideração Pessoal:

- Não é a bala de prata

Page 6: MVP em Swift (Erick Vicente)

Padrão de Arquitetura

5 princípios de SOLID:

- The Single Responsibility Principle (SRP)"A class should have one, and only one, reason to change."

- The Open Closed Principle (OCP)"You should be able to extend a classes behavior, without modifying it."

- The Liskov Substitution Principle (LSP)"Derived classes must be substitutable for their base classes."

- The Interface Segregation Principle (ISP)"Make fine grained interfaces that are client specific."

- The Dependency Inversion Principle (DIP)"Depend on abstractions, not on concretions."

Page 7: MVP em Swift (Erick Vicente)
Page 8: MVP em Swift (Erick Vicente)

Visão Geral do MVC

O que gostaríamos que fosse:

Page 9: MVP em Swift (Erick Vicente)

Visão Geral do MVC

O que realmente é:

Page 10: MVP em Swift (Erick Vicente)

MVP

Page 11: MVP em Swift (Erick Vicente)

MVP

Na prática

Page 12: MVP em Swift (Erick Vicente)

MVP

Model

Page 13: MVP em Swift (Erick Vicente)

MVP

View

Page 14: MVP em Swift (Erick Vicente)

MVP

View

Page 15: MVP em Swift (Erick Vicente)

MVP

View

Page 16: MVP em Swift (Erick Vicente)

MVP

Presenter

Page 17: MVP em Swift (Erick Vicente)

Teste

Page 18: MVP em Swift (Erick Vicente)

Erick Vicente

/csericksantos

[email protected]

Page 19: MVP em Swift (Erick Vicente)

www.concretesolutions.com.br

Rio de Janeiro – Rua São José, 90 – cj. 2121Centro – (21) 2240-2030

São Paulo - Av. Nações Unidas, 11.541 3º andar - Brooklin - (11) 4119-0449

Ajudamos empresas a criar produtos digitais de sucesso