Best of Nick ChapsasSeptember 2024

  1. 1
    Video
    Avatar of nickchapsasNick Chapsas·2y

    Stop Using FirstOrDefault in .NET! | Code Cop #021

    Nick explains why using the Find method over FirstOrDefault in .NET lists can be a misleading practice. He highlights performance comparisons and how optimizations in .NET 9 make FirstOrDefault faster, emphasizing the importance of understanding such nuances to avoid harming code and performance.

  2. 2
    Video
    Avatar of nickchapsasNick Chapsas·2y

    TUnit: The Future of Testing in .NET

    TUnit is a new testing library for .NET that offers significant modernization and control for unit and integration testing. It leverages source generation for faster test execution and provides advanced features like async assertions, hooks for setup and teardown, multi-threaded test execution, and retry mechanisms for flaky tests. The library is highly configurable and supports dependency injection and compile-time checks, which enhance the robustness and flexibility of tests. The post discusses these features in detail using a simple calculator test as an example and encourages readers to try out TUnit and provide feedback.