Debugging SystemStackError

Prior to Ruby 2.2, debugging stack overflow errors can be painful because most of the backtrace is swallowed in the output. Learn a quick workaround with Kernel.set_trace_func.

Using RSpec Metadata

Leveraging RSpec metadata to control how specs are run with examples for altering database mode and toggling behavior based on spec directory

Handling Paginated Resources in Ruby

Extracting data from an API can get messy once pagination is involved. We'll look at a few ways of dealing with this complexity, including "recursive each" and Kernel#to_enum method to enumerate paginated resources

Use inverse_of

ActiveRecord will try hard to infer the inverse relation for your associations, but you may benefit from setting the inverse_of option wherever possible

Heuristics

Applying Ruby to heuristics-based solutions to NP-hard problems in computer science

Page 3 of 4 · Previous · Next