This document discusses the author, their interests which include cooking, biking and jogging. It then discusses design patterns, goals of scalability, maintainability and testability. It covers classic Android programming issues like large activities and no unit testing. Finally, it introduces MVVM as a design pattern created by Microsoft with pros of being testable and less code, but potential downside of overkill for simpler apps.
1 of 9
Download to read offline
More Related Content
MVVM.pptx
1. About me
弜鏝 Im Mark Anthony Cadag
My prized possession
Panda my cat
What else
I like Cooking
癌鏝 I like Biking
I like jogging
2. Design Patterns
Best Practices
Relationship between classes and objects
Speed up development
Programming independent
3. What is your Goal?
Scalability
Maintainability
Testable
4. What is your Goal?
Scalability
Add new features quickly
Maintainability
No spaghetti code
Dont cross streams
Testable
Easy to mock
5. Classic Android
Pros
Programming with your eyes closed
Cons
Activites/Fragments quickly become large
All logic inside activity, unit testing impossible
Painful to make changes
6. About MVVM
Also known as model-view-binder and was created by Microsoft architects Ken Cooper and John
Gossman.
MVVM is not an architecture pattern but a design pattern
Not a silver bullet to solve all design issue.
7. MVVM
Pros
Testable
Less code
Cons
Binding isnt always appropriate
Overkill for simpler UIs