Getting Started with Test-Driven Development

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • Join me as I show you how to practice Test-Driven Development.
    💎 Be a Patreon to get the source code: / gsferreira
    👨‍🏫 TDD Workshop: guiferreira.me...
    👨‍🏫 NDC Oslo Workshop: ndcoslo.com/wo...
    ⭐️ Get my TDD course: dometrain.com/...
    🚨 KEY LINKS
    🤝 Support me on Patreon (and get access to source code) here: / gsferreira
    💌 Free Developer Insights: guiferreira.me...
    📘 Courses: guiferreira.me...
    👨‍🏫 Workshops: guiferreira.me...
    🔗 GET IN TOUCH
    LinkedIn: / gferreira
    Twitter: / gsferreira
    GitHub: github.com/gsf...
    Get my newsletters: guiferreira.me...
    Visit my blog: guiferreira.me
    👋 WHO AM I
    Hey! If you're new to my Channel, I'm Guilherme. Call me Gui. I'm a Minimalist Software Craftsman. What do I do here? I share tips on how to simplify your life as a Developer.
    🎵 MUSIC CREDITS
    Reflections in Rain / StreamBeats / Lofi
    #testdrivendevelopment #tdd #csharp #dotnet

Комментарии • 16

  • @emiraksoy1520
    @emiraksoy1520 3 месяца назад +4

    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 !

    • @Meryovi
      @Meryovi 3 месяца назад +2

      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.ferreira
      @gui.ferreira  3 месяца назад

      Something like an API that is not just a simple CRUD application and that touches 2 to 3 dependencies?!

    • @dominikotocan1348
      @dominikotocan1348 2 месяца назад

      @@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...

  • @xaberue
    @xaberue 2 месяца назад

    Great introduction video to TDD Gui! The example is really interesting to try it!! 👌

  • @majtkishadow
    @majtkishadow 3 месяца назад +2

    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.ferreira
      @gui.ferreira  3 месяца назад +1

      Is this what you are looking for?
      ruclips.net/user/liveXMDeoBO0IM4?si=daUr8UzjriHT1VEK

    • @majtkishadow
      @majtkishadow 3 месяца назад +1

      @@gui.ferreira I'll check it out, thank you!

  • @maxpuissant2
    @maxpuissant2 3 месяца назад +2

    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.ferreira
      @gui.ferreira  3 месяца назад

      You are right. To do it, we just need to add a new entry to the symbols list

  • @Sp1tfire100
    @Sp1tfire100 3 месяца назад

    Hi, what theme for vs code is this?

    • @6mrmeeker6
      @6mrmeeker6 3 месяца назад +2

      Not VSCode, but Jetbrains Rider IDE.
      But I think it is a Dracula theme.

    • @Sp1tfire100
      @Sp1tfire100 3 месяца назад

      @@6mrmeeker6 is it chinese?

    • @Sp1tfire100
      @Sp1tfire100 3 месяца назад

      Is it made in china?

    • @gui.ferreira
      @gui.ferreira  3 месяца назад

      It’s here
      ruclips.net/video/wQG_LntcAQQ/видео.html