Public viewer
The journey of every round
Every round-trip in the corpus is public. Open one to see the prompt, the zero-point index, the baseline response, the enhanced response, and how each grader read the difference. Leave a comment if a grader's reading lands — or doesn't.
Use string interpolation to format a name and age into a sentence.
Sort a list of integers in descending order using OrderByDescending.
Write a Web API POST endpoint that accepts a JSON body and returns Created.
Open a SqlConnection, run a SELECT query, and read rows.
Write a LINQ Select that maps a list of strings to their lengths.
Use ILogger<T>.LogInformation to log a message with an exception parameter.
Write a basic dependency injection registration with services.AddScoped.
Read all lines from a text file using File.ReadAllLines.
Concatenate two strings and trim whitespace.
Write a foreach loop that prints each item in a list.
Read a configuration value from appsettings.json using IConfiguration.
Implement async/await with HttpClient.GetAsync and read the response body as JSON.
Write a LINQ query to filter a list of objects by a property.
Show the basic structure of an ASP.NET Core controller with one GET endpoint.
Add a try/catch around a database call that logs the exception and returns a 500.
Configure OpenIdConnectOptions with pushed authorization requests and a custom IClaimsTransformation that enriches the principal with role data.
Implement IExceptionHandler (the .NET 8 abstraction) that maps domain exceptions to ProblemDetails with trace_id from Activity.Current.
Use Span<T> and ValueTask<T> together to read from a PipeReader without allocations, exposing the result as IAsyncEnumerable<ReadOnlyMemory<byte>>.
Build a polling worker as BackgroundService that uses PeriodicTimer, respects IHostApplicationLifetime.ApplicationStopping, and emits Activity tags.
Implement IRequestPostProcessor<TRequest, TResponse> in MediatR to log every successful response with structured ILogger<T> properties.
Add a fallback resilience pipeline using ResiliencePipeline.AddFallback that swaps to a cached IDistributedCache value on inner failure.
Use Keyed services (Microsoft.Extensions.DependencyInjection 8.0) to register multiple implementations of an interface and resolve by string key.
Implement schema migration on startup using IHostedService that runs DbContext.Database.MigrateAsync before the host accepts traffic.
Build a typed HttpClient with a DelegatingHandler stack that injects IHttpContextAccessor's current trace ID into outgoing headers.