What does mock do in Android development in general? Can someone give me a real world analogy? Also how is it implemented? eg. Do you create a whole MOCK View Class and connect it to your actual Presenter and Model for testing? Same with Mock Presenter, Mock Model?
For starters, yes, mostly for testing. Its probably the only way to unit test different classes that depend on others. I don't think you would need to mock a view since its job its just to display something, the something it what you need to test and for that you don't need a view.
He did ask the audience to do so, but sometimes instincts take over. We will continue to advise our speakers to ask to hold all questions until the end.
Boilerplate code is the code you find yourself always needing to write into a project, over and over again. Most people use boilerplate code when starting a new project so they can get right to the business logic.
It would have been a very good presentation, only if the presenter had put less images in one single side. No one can read the slide, and my eyes are hurting.
The presenter of this talk is in my humble opinion not knowledgeable enough on the subject; first of all, MVC, MVP, and MVVM are design patterns, not architectures, although the presenter interchanges terminology and clearly does not understand the differences. One might argue why this would be important; well, the fact that Clean is put in perspective -which is an architecture- makes the audience is being taught the wrong principles. Design patterns are intended to solve a particular problem; in this case the three design patterns are trying to solve the problem on how to deal with user input and feedback to the end user. The 3 patterns do it in a slightly different way by assigning different responsabilities to each segment.
The important thing is that he understands the main goals of UI architecture and teaches the audience to think about what should be important to projects when defining UI architecture. Also, thinking that the original MVC papers/articles are what is important against the context of the evolution of MVC is just plain silly. Finally, I've studied these architectures quite a bit and found this presentation to be one of the most informative single sources for understanding UI architecture as it currently exists.
Cool, turns out I've been using Clean Architecture all along!
Better to do the questions at the end next time. Besides that, very informative and clear presentation!
I have to say thank you for the vid, but pls, in the future make your display much larger so its easier to see.
Great explanation! Thank you.
What does mock do in Android development in general? Can someone give me a real world analogy? Also how is it implemented? eg. Do you create a whole MOCK View Class and connect it to your actual Presenter and Model for testing? Same with Mock Presenter, Mock Model?
For starters, yes, mostly for testing. Its probably the only way to unit test different classes that depend on others.
I don't think you would need to mock a view since its job its just to display something, the something it what you need to test and for that you don't need a view.
awesome explanation
Good talk. Wish the questions were asked at the end not interrupting the talk
He did ask the audience to do so, but sometimes instincts take over. We will continue to advise our speakers to ask to hold all questions until the end.
AnDevCon: The Android Developer Conference.
nice overview!
Slides
www.slideshare.net/godfreynolan/android-design-patterns-60031974
Thanks :)
Thanks :)
Brilliant!
thank you very much
What is boilerplate?
Boilerplate code is the code you find yourself always needing to write into a project, over and over again. Most people use boilerplate code when starting a new project so they can get right to the business logic.
where is the slides link ?
www.slideshare.net/godfreynolan/android-design-patterns-60031974
who / what is uncle bob?
Google it out.
Already did.
Well regarded Speaker/Author/Entertainer in the programming community.
Sir is this Design Pattern or Architectural pattern.
Architectural pattern.
Thank you
but sample pieces of code are not readable
What is YAGNI? its at time 1:05:05 .
hahaha. You aren't gonna need it. Funny.
It would have been a very good presentation, only if the presenter had put less images in one single side. No one can read the slide, and my eyes are hurting.
谁能添加下中文字幕
Bollocks... if you are looking for some information about mvc etc. search for something else....
don't waste your time here
The presenter of this talk is in my humble opinion not knowledgeable enough on the subject; first of all, MVC, MVP, and MVVM are design patterns, not architectures, although the presenter interchanges terminology and clearly does not understand the differences.
One might argue why this would be important; well, the fact that Clean is put in perspective -which is an architecture- makes the audience is being taught the wrong principles.
Design patterns are intended to solve a particular problem; in this case the three design patterns are trying to solve the problem on how to deal with user input and feedback to the end user. The 3 patterns do it in a slightly different way by assigning different responsabilities to each segment.
This guy knows nothing about MVC, MVP or Clean Architecture. Read the original papers/articles where these three terms are from.
Perth Kan can you point out why he doesn't?
The important thing is that he understands the main goals of UI architecture and teaches the audience to think about what should be important to projects when defining UI architecture. Also, thinking that the original MVC papers/articles are what is important against the context of the evolution of MVC is just plain silly. Finally, I've studied these architectures quite a bit and found this presentation to be one of the most informative single sources for understanding UI architecture as it currently exists.