I have watched "stack" example of uncle bob.Its really good to see another example of TDD. I would be fantastic to see wep API development via TDD or other real world example that we can follow on daily work. Thanks for the nice content !
@Meryovi8 ай бұрын
I feel the same. I can easily see the value in these examples with extremely well defined rules and expectations, but I'm unsure how that would go in a real would application with complex requirements that keep changing.
@gui.ferreira7 ай бұрын
Something like an API that is not just a simple CRUD application and that touches 2 to 3 dependencies?!
@dominikotocan13486 ай бұрын
@@gui.ferreira yeah. A lot of TDD examples we see in tutorials are too simple. It's easy to write tests for MyCalculator.Sum(a+b). Real world APIs have to deal with auth, roles and permissions or even security policies (only user who created this entity can access it) and other middleware that runs before and after request, pagination, sorting and filtering, error handling, possibly even translations for different languages, logging, caching, external services like S3 storage...
@dawid_dahl2 ай бұрын
Yes, please do a tutorial where you need to mock external dependencies of various kinds. Testing with pure functions is easy. That said, this was a great video. Thank you!
@xaberue6 ай бұрын
Great introduction video to TDD Gui! The example is really interesting to try it!! 👌
@gui.ferreira6 ай бұрын
Thanks! 😃
@majtkishadow8 ай бұрын
After 8 years of experience, I'm totally comfortable with TDD in examples like yours. When it's a small project, and I'm testing basic stuff. However, I still do struggle in a big (sometimes legacy) project, when in order to test one thing you need to mock 3 external services and 2 database calls. Would you be able to make a video on that? How to use TDD in a big project without wasting so much time on it?
@gui.ferreira7 ай бұрын
Is this what you are looking for? kzbin.infoXMDeoBO0IM4?si=daUr8UzjriHT1VEK
@majtkishadow7 ай бұрын
@@gui.ferreira I'll check it out, thank you!
@maxpuissant28 ай бұрын
You missed CD=>400 and XL=>40, and I would argue the duplication logic that come with it, substracting value from the next symbol if it is bigger.
@gui.ferreira7 ай бұрын
You are right. To do it, we just need to add a new entry to the symbols list
@Sp1tfire1008 ай бұрын
Hi, what theme for vs code is this?
@6mrmeeker68 ай бұрын
Not VSCode, but Jetbrains Rider IDE. But I think it is a Dracula theme.