It may seem counter-intuitive, but sometimes we need randomness to be predictable. Today's episode explores how we can accomplish this, and why we might want to.
Tag: Input – Output
Episode #311: Secure Random
Today we'll learn a little more about the SecureRandom module.
Episode #307: Command Loop
In this episode we'll build a simple command-prompt loop in Ruby.
Episode #267: Kernel Open with Rob Miller
In this guest episode, Rob Miller shows off some super powers of Ruby's `Kernel#open`.
Episode #171: puts
Even the most basic of Ruby methods sometimes have hidden depth. Today we'll take a look at some advanced uses of the puts method.
Episode #169: Caching Gateway
You might remember the Gateway and Mapper patterns from recent episodes. Today we'll look at how to insert a caching layer between those two patterns. In the process, we'll examine …
Episode #153: Testing Sleep
We try to avoid writing slow unit tests, but what if we are testing a method whose responsibilities include waiting for a period of time? In this episode we look …
Episode #151: Sleep
Today's episode tackles a subject I've always wondered about: how accurate is Kernel#sleep?