What I like about TDD is that it turns the focus back to features and scenarios and demands to only implement what is needed to fulfill those. I often observed that this results in less "fancy infrastructure" and simpler code which just gets the job done.
Cleanest TDD video I have ever seen. I watched multiple TDD tutorials but I didn't understood why it is important. Now I understand how easy to refactoring a method in TDD.
Hey Gui! I'm a fellow software engineer from Portugal, advocating for TDD and other extreme programming practices on DevOps teams. Great video with a pragmatic approach! I will refer to your channel as proof that we (in Portugal) have great industry communicators as well, and we are not alone in our endeavor. I also agree very much with your take on Hexagonal and Clean architectures.
Hey Gui, I'd love to see more about TDD. Like: how would you use TDD to handle more complex stuff such as methods that call other services? Mocks all the way or would you use another approach?
Noted! That it's in fact one common challenge. Let me think about how to explain that in a simple and clear way, and I will get back with a video on that. 😉
Hello Gui. Thank you very much for this video. I am thankful, I wasn't expecting to understand TDD, I only know ADHD 😆. I am a slow learner, but your video was very effective ! :D
Shouldn't you have written the test for IsDivisibleBy first before implementing the method? And you cantually did not implement a test for it at all. Anyway, great video that explains the principle of test driven development.
Minute 11:15? If so, I don't want to add new tests during a refactoring. It was just an internal implementation detail that changed and the external behaviour was still covered by the existing tests 😉
It's a Switch Expression. I use them often, but in this case, I want to demonstrate that you can refactor the code confidently since you have tests in place.
What I like about TDD is that it turns the focus back to features and scenarios and demands to only implement what is needed to fulfill those. I often observed that this results in less "fancy infrastructure" and simpler code which just gets the job done.
100%
We are terrible planners, so why would we plan the perfect infrastructure before starting? 😉
Cleanest TDD video I have ever seen. I watched multiple TDD tutorials but I didn't understood why it is important. Now I understand how easy to refactoring a method in TDD.
Thanks Kaan! Your comment made my day 🙏
It's a great one and thank you for your knowledge that shared.
Thank you 🙏
Thanks for sharing your time and knowledge
I finally understood the process. Thank you!
Great! Really happy with that!
Hey Gui! I'm a fellow software engineer from Portugal, advocating for TDD and other extreme programming practices on DevOps teams.
Great video with a pragmatic approach! I will refer to your channel as proof that we (in Portugal) have great industry communicators as well, and we are not alone in our endeavor.
I also agree very much with your take on Hexagonal and Clean architectures.
Olá Paulo!
Thanks for the comment. I'm glad you find it interesting.
Let's keep showing what Portuguese people are capable of 😉
Hey Gui, I'd love to see more about TDD.
Like: how would you use TDD to handle more complex stuff such as methods that call other services? Mocks all the way or would you use another approach?
Noted!
That it's in fact one common challenge. Let me think about how to explain that in a simple and clear way, and I will get back with a video on that. 😉
Hi Davide,
I have a new video on it: th-cam.com/video/x5hsO6R6Me8/w-d-xo.html
Let me know what you think about it.
@@gui.ferreira This is absolute class! Well done.
@@martorulez Thank you!
Thank you Gui
Hello Gui. Thank you very much for this video. I am thankful, I wasn't expecting to understand TDD, I only know ADHD 😆. I am a slow learner, but your video was very effective ! :D
Glad to hear that! 🙏
Feel free to ask any question
0:05 this little thing had me laughing so hard I don't know why haha
And this comment also made me smile 😁
Osh, agr que vi teu nome, é brasileiro né bonitão kkkkkkkk, ótimo video mano, me salvou
Falo a mesma lingua mas não sou brasileiro. 😅 Português
Great video Gui
Thank you 🙇
Bom encontrar um video bacano feito por um tuga, reparei logo nas primeiras frases, eheh.
Abraço!
Foi o sotaque? 😅 abraço Rui!
@@gui.ferreira foi! 😁
@@eusouorui Não estou certo que isso seja bom 😅
Shouldn't you have written the test for IsDivisibleBy first before implementing the method? And you cantually did not implement a test for it at all. Anyway, great video that explains the principle of test driven development.
Minute 11:15? If so, I don't want to add new tests during a refactoring. It was just an internal implementation detail that changed and the external behaviour was still covered by the existing tests 😉
typeof(string)
why do you prefer the switch statement over the if statements?
It's a Switch Expression.
I use them often, but in this case, I want to demonstrate that you can refactor the code confidently since you have tests in place.
So Cool
Thank you!
A linux user here... how do you run test in terminal.
Hi! Once dotnet CLI is installed, simply run `dotnet test`: learn.microsoft.com/en-us/dotnet/core/tools/dotnet-test
Except complex systems have so many dependencies.
th-cam.com/video/x5hsO6R6Me8/w-d-xo.htmlsi=UZsB-SWYhaxDamZx
Please, none of those weird movie clip inserts.
Other than that of course thanks for the content :)
greaT
Thank you 🙏