Design Tech Talk Series Presents: OO Design for Testability

  Рет қаралды 105,904

Google TechTalks

Google TechTalks

Күн бұрын

Пікірлер: 36
@bugsthecat
@bugsthecat 6 жыл бұрын
Ten years later now, the talk is still applicable industry-wide. Really good talk!
@amiramhalperin
@amiramhalperin 11 ай бұрын
This talk will remain applicable as long as humans will continue to code. I enjoyed this talk when it just been published and I'm sharing it also today when teaching others. Misko thanks for that. 🙌
@amyh1112
@amyh1112 4 жыл бұрын
When I did code review and noticed that the code in the constructor is very hard to test. I requested it needs to be refactored. The engineer who submitted the pull request arguing with me saying that is the right way to have implementation in the constructor. So I googled "how to write testable code" to see how other people explain to write testable code better, and I found your blog and this video. Thank you for this awesome presentation!!
@context177
@context177 3 жыл бұрын
tried to write unit test to my ctor and I'm here too:)
@neohubris
@neohubris 15 жыл бұрын
Misko thank you very much for doing these talks. Your clean code talks has helped my work tremendously.
@Curelet
@Curelet 10 жыл бұрын
Great talk that summarizes and brings new twists to the topics of Misko's previous 2 Google Clean Code talks "Global state and singletons" and "Don't look for things". Main ideas: - Where to use the new keyword - What should be done in the constructor - Use of Global state and singletons is bad for testing due to side effects - The use of Service Locator should be avoided - Dependency Injection (DI) is the solution to the Law of Demeter violations.
@vaulttech
@vaulttech 13 жыл бұрын
I've searched for the other 3 talks (since this is the fourh) but I couldn't find them. Can someone please give me the link?
@christianb6718
@christianb6718 12 жыл бұрын
I've seen some videos from Miško Hevery. This helped me alot moving to the right direction.
@vladimirvukanac
@vladimirvukanac 9 жыл бұрын
This was really helpfull! This will be a "must see" for every code related person in my company.
@ericcartmansh
@ericcartmansh 12 жыл бұрын
at 23:04 wouldn't it make more sense to have the unit test create the Engine instance fakeEngine with getEngine() and pass in the engine factory and the model? Or is the call to getEngine assumed to be happening in the constructor of the Engine class?
@elvedrano
@elvedrano 11 жыл бұрын
(long silence) "I forgot what this example was about... Let's just skip that!" Priceless :D
@bayantsinghkang67
@bayantsinghkang67 7 жыл бұрын
Makes me laugh even after 3 years.....
@blackbindy
@blackbindy 3 жыл бұрын
@@bayantsinghkang67 and after another 3 years
@phantruong1217
@phantruong1217 6 ай бұрын
and after another 3 years
@LucianoMoretti1
@LucianoMoretti1 15 жыл бұрын
Another Great Talk- a summary of his other "Clean Code Talks". The one thing I still lament that is not addressed well is how to simplify DI and Testing in C++.
@iosbfree1854
@iosbfree1854 2 жыл бұрын
Great talk. Great presenter. Great developer. Great ideas! Thank you so much for sharing this! ❤🧡💛💙
@TankaNafaka
@TankaNafaka 4 жыл бұрын
I dint know how, now I know where to start. Thanks for sharing!
@sumitvyas13
@sumitvyas13 12 жыл бұрын
Awesome... For the 20 arguments problem the solution suggested is following SRP. Single Responsibility Principle takes care of simplifying the Object graph and code simplification.
@24sevenmtb
@24sevenmtb 11 жыл бұрын
Great talk! Does anybody know where (if) the slides can be found online?
@skeom21
@skeom21 15 жыл бұрын
Thanks... I believe this is very helpful tip for all developers.
@HansVanIngelgom
@HansVanIngelgom 15 жыл бұрын
I also saw his previous "clean code talks" (it's been a while, so it was a good opportunity to refresh it), but am I wrong or did he change his mind about null objects? iirc, before he was a proponent of using null pointers.
@pereznels
@pereznels 14 жыл бұрын
Awesome presentation!
@ErickDovale
@ErickDovale 14 жыл бұрын
Very nice talk. A bit ambiguous with the term singleton. There is the singleton pattern as described in the Gof4 book which is the one that is problematic to test and there is the single instance of a class throughout the life of the application. There is nothing wrong with the latter IMO.
@SaiGudigundla
@SaiGudigundla 14 жыл бұрын
Thanks for the great presentation.
@move1649
@move1649 4 жыл бұрын
Watched this 1st time 10 years ago, time flies
@yuskamify
@yuskamify 11 жыл бұрын
A very nice talk.. thanks.
@espinchi
@espinchi 15 жыл бұрын
Great talk!
@uris77
@uris77 12 жыл бұрын
That is not the Law of Demeter. It is about types not dots.
@leanJDe
@leanJDe 11 жыл бұрын
what is a friendly?
@vishwajeetkakde1117
@vishwajeetkakde1117 5 жыл бұрын
A test double. Mocks, fakes, stubs, etc.
@jalalsadeghi66
@jalalsadeghi66 9 жыл бұрын
this was very helpful
@lingyongwang2817
@lingyongwang2817 7 жыл бұрын
this is great!
@guilhermealveslopes
@guilhermealveslopes 3 жыл бұрын
Oh my, you can see how all these developers attending to the conference are shy as hell, 2021, still accurate
@DotNetNukeVS
@DotNetNukeVS 15 жыл бұрын
You are so awesome
@BryonLape
@BryonLape 5 жыл бұрын
The problem is the corporate mind set.
@2Guruda
@2Guruda 10 жыл бұрын
Google Car Drives itself. May be one day Google car will create its own Engine. :) Great lecture
"The Clean Code Talks  -- Unit Testing"
32:08
Google TechTalks
Рет қаралды 287 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
PHP Destructuring & Spreading
2:59
Nuno Maduro
Рет қаралды 1,4 М.
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 997 М.
UX Research and Usability Testing - Designer vs. Developer #21
16:06
Chrome for Developers
Рет қаралды 20 М.
The Clean Code Talks - "Global State and Singletons"
54:09
Google TechTalks
Рет қаралды 191 М.
The Secret To "Great" Design Is Simpler Than You Think
7:21
The Futur
Рет қаралды 385 М.
Google I/O 2009 - The Myth of the Genius Programmer
55:17
Google for Developers
Рет қаралды 1,1 МЛН
The Clean Code Talks - Don't Look For Things!
37:57
Google TechTalks
Рет қаралды 285 М.
The Return of Procedural Programming - Richard Feldman
52:53
ChariotSolutions
Рет қаралды 63 М.
Automated Testing Patterns and Smells
59:34
Google TechTalks
Рет қаралды 63 М.
Effective Java - Still Effective After All These Years
1:13:59
UserGroupsatGoogle
Рет қаралды 151 М.