Latest
Controlling State Variables in Cucumber
Cucumber steps love local variables as the way the transition state across steps but they're a rich source of bugs in your test suite.
Jul 04, 2020
TIL: Ruby's Loop Automatically Breaks at the End of Iteration
Autobreaking loops with iterators
Jul 03, 2020
TIL: How to Quickly Get Regex Matches in Ruby
I often want to get the string from a regex match. If I'm only bothered about getting the first match, this shorthand works
Jul 01, 2020
TIL: You Can Use Lambdas in Ruby Case Statements
Using lambdas inside Ruby case statements
Jun 30, 2020
TIL: Ruby Knows the Source of Required Code
There's a magic variable which, if initialised, will contain the source of all the files imported afterwards
Jun 29, 2020
TIL: Using File Locking for Exclusivity in Ruby
Two TILs in one, how to use native file locking to prevent more than one process running at the same time
Jun 28, 2020
TIL: Ruby Has a Built-in Persistance Database
Did you know Ruby has a built-in database?
Jun 27, 2020