Unit Testing Principles, Practices, and Patterns: Effective testing styles, patterns, and reliable automation for unit testing, mocking, and integration testing with examples in C#

In this episode, we're talking about lessons learned and the lessons we still need to learn. Also, Michael shares some anti-monetization strategies, Allen wins by default, and Joe keeps it real 59/60 days a year!

The full show notes for this episode are available at https://www.codingblocks.net/episode212.

News * Thanks for the review rioredwards! * Want to help us out? Leave a review! (/reviews)

Exceptions vs Errors in Java * Exceptions: Unwanted or unexpected events + NullPointerException + IntegerOverflowException + IllegalArgumentException * Errors: Serious problems that you should try not to catch - generally no recovery + OutOfMemoryError + StackOverflowError + NoClassDefFoundError * What happens if your code runs in a background thread? + Thread gets terminated, but the application keeps running + Resources are released, dependent threads are terminated + It's up to the owner of the thread to handle the situation + The best practice is to attempt to handle these situations by validating at startup

Question from Twitter: (thanks jvilaverde!) How do you guys keep up with your data sources?

  • Coding Blocks Slack (/slack)
  • Hacker News

StackOverflow Survey (thanks mikerg!) * 70% of all respondents are using or are planning to use AI tools in their development process this year * 82% of people learning to code plan to use AI * 30% don't plan on it * 40% of devs trust the accuracy of AI * Highest paid languages? Zig, Erlang, RB, Scala, Lisp, F# * Lowest paid? Dart, MATLAB, PHP, Visual Basic, Delphi * Warning: remember the audience! * Web Frameworks: React 40% Angular 17%, Vue 16% * Other frameworks: .NET, NumPy, Pandas * What does this tell you about the demographics? * Docker 51%, Kubernetes 20%

Resources We Like * StackOverflow 2023 Survey Results (survey.stackoverflow.com) * We <3 Kubernetes (episode 147) * Is Kubernetes Programming? (episode 141) * Chik-Fil-A A Kubernetes Success Story (appvia.io) * How to write amazing unit tests (episode 54) * Zig Language (ziglang.org) * Unit Testing Principles, Practices, and Patterns: Effective testing styles, patterns, and reliable automation for unit testing, mocking, and integration testing with examples in C# (Amazon)