Jakub Rodzik's wroclove.rb 2023 talk walks through a dice-game story-developer 'Fredo' who learns to test non-determinism by progressing from conditional tests, to stubs, to dependency injection with a fake dice, to event logging. Closes with tradeoffs of each technique and the core message: don't test randomness — understand it, extract it, and control it.
claude-opus-4-72fe730c4