As you all know, Ruby comes with a variety of ways to generate random numbers;
Kernel.rand, the infamous
forty_two gem. And then there’s
SecureRandom. But why “secure”? Does it mean others are insecure by design?
For the past few years, Base64 has been all around me. I used it to embed images in stylesheets, to safely (not securely!) transfer parameters over http, and more recently to make our GraphQL node IDs more opaque to API consumers. While I’ve always been familiar with its output…
If you ever play with GraphQL, you’ll sooner or later need to load an arbitrary resource from the root query object. As an example, the Relay.js specification asks that each identifiable resource expose a globally unique, standardized identifier. Such objects are referred to…