Lessons from learning a new programming language for game development: think like a musician, pick a Rosetta Stone problem, and practice with code katas.
Find NimblePros at CodeMash 2024: our KidzMash session and shirt sponsorship, two workshops, and four conference sessions, with dates and times for each.
Add bearer token authentication to a Refit client in .NET, including the step most examples skip: actually obtaining the token through dependency injection.
C# 12 primary constructors work well for dependency injection but less so for validation or DTOs. Our recommendations, including how to name the parameters.
Refit turns a C# interface into a typed, injectable HTTP client. Set one up in a .NET worker service, define routes, and inspect responses with ApiResponse<T>.
Stop writing your own IClock wrappers. .NET 8's TimeProvider gives you a built-in time abstraction, and FakeTimeProvider makes time-dependent code easy to test.