News
Why use Factory Bot instead of creating test data manually?
I recently taught a Rails testing class where we wrote tests using RSpec, Capybara, Factory Bot and Faker.During the class, one of the students asked, why do we use Factory Bot? What’s the advantage over creating test data manually?The answer to t...
Catch a batch: Making Mayhem 5 times more responsive
Milliseconds matter: that’s equally true for Olympic champions, online gamers, and gaming startups. Even little breakdowns in an online platform backend like excessive database calls or in-memory data manipulation can severely slow down the gaming...
Limit Everything: Timeouts for Shell Commands in Ruby
I have talked about limiting everything before, but I love examples, so I thought I would start bringing some out of the woodwork. How many times have you whipped out backticks or one of the million other ways you can shell out in Ruby? If you are...