Ten years later now, the talk is still applicable industry-wide. Really good talk!
@amiramhalperin11 ай бұрын
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. 🙌
@amyh11124 жыл бұрын
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!!
@context1773 жыл бұрын
tried to write unit test to my ctor and I'm here too:)
@neohubris15 жыл бұрын
Misko thank you very much for doing these talks. Your clean code talks has helped my work tremendously.
@Curelet10 жыл бұрын
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.
@vaulttech13 жыл бұрын
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?
@christianb671812 жыл бұрын
I've seen some videos from Miško Hevery. This helped me alot moving to the right direction.
@vladimirvukanac9 жыл бұрын
This was really helpfull! This will be a "must see" for every code related person in my company.
@ericcartmansh12 жыл бұрын
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?
@elvedrano11 жыл бұрын
(long silence) "I forgot what this example was about... Let's just skip that!" Priceless :D
@bayantsinghkang677 жыл бұрын
Makes me laugh even after 3 years.....
@blackbindy3 жыл бұрын
@@bayantsinghkang67 and after another 3 years
@phantruong12176 ай бұрын
and after another 3 years
@LucianoMoretti115 жыл бұрын
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++.
@iosbfree18542 жыл бұрын
Great talk. Great presenter. Great developer. Great ideas! Thank you so much for sharing this! ❤🧡💛💙
@TankaNafaka4 жыл бұрын
I dint know how, now I know where to start. Thanks for sharing!
@sumitvyas1312 жыл бұрын
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.
@24sevenmtb11 жыл бұрын
Great talk! Does anybody know where (if) the slides can be found online?
@skeom2115 жыл бұрын
Thanks... I believe this is very helpful tip for all developers.
@HansVanIngelgom15 жыл бұрын
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.
@pereznels14 жыл бұрын
Awesome presentation!
@ErickDovale14 жыл бұрын
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.
@SaiGudigundla14 жыл бұрын
Thanks for the great presentation.
@move16494 жыл бұрын
Watched this 1st time 10 years ago, time flies
@yuskamify11 жыл бұрын
A very nice talk.. thanks.
@espinchi15 жыл бұрын
Great talk!
@uris7712 жыл бұрын
That is not the Law of Demeter. It is about types not dots.
@leanJDe11 жыл бұрын
what is a friendly?
@vishwajeetkakde11175 жыл бұрын
A test double. Mocks, fakes, stubs, etc.
@jalalsadeghi669 жыл бұрын
this was very helpful
@lingyongwang28177 жыл бұрын
this is great!
@guilhermealveslopes3 жыл бұрын
Oh my, you can see how all these developers attending to the conference are shy as hell, 2021, still accurate
@DotNetNukeVS15 жыл бұрын
You are so awesome
@BryonLape5 жыл бұрын
The problem is the corporate mind set.
@2Guruda10 жыл бұрын
Google Car Drives itself. May be one day Google car will create its own Engine. :) Great lecture