MVP em Swift (Erick Vicente)

Post on 16-Apr-2017

208 views 0 download

Transcript of MVP em Swift (Erick Vicente)

MVP em Swift

MVP

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

Padrão de Arquitetura

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

Padrão de Arquitetura

● MVC● MVP● MVVM● Viper

Padrão de Arquitetura

Consideração Pessoal:

- Não é a bala de prata

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."

Visão Geral do MVC

O que gostaríamos que fosse:

Visão Geral do MVC

O que realmente é:

MVP

MVP

Na prática

MVP

Model

MVP

View

MVP

View

MVP

View

MVP

Presenter

Teste

Erick Vicente

/csericksantos

erick.santos@concretesolutions.com.br

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