Guides to the core and standard libraries, as well as selected Rubygems.
Category: APIs and Libraries
Bust nils with Hash#fetch!
A RubyTapas classic, now free: learn how to use Hash#fetch to catch missing hash keys before they do more damage!
Episode #525 – Memory Profiling – Nate Berkopec
Objects may be cheap in Ruby, but they aren't free. Learn how to diagnose memory usage problems using Ruby's built-in ObjectSpace API, with Ruby and Rails optimization expert Nate Berkopec!
Episode 524: Data Munging Play-by-Play Part 2 with Avdi Grimm
Part 2/2 of a play-by-play of a recent Ruby data-munging coding session. More fun with regexes, lazy enumerators, and more!
Episode 523: Data Munging Play-by-Play Part 1 with Avdi Grimm
Check out this play-by-play of a recent Ruby data-munging coding session, with commentary on live/fast feedback, lazy enumerators, and more!
Episode #510: RSpec Tags
In this episode, guest chef Erin Dees teaches you how to use RSpec tags to test exactly what you need and no more.
Episode #509: Logical Matrix with Piotr Szotkowski
Use an obscure feature of Ruby integers to efficiently store large matrices of boolean data.
Episode #508: RSpec Focus Tests with Erin Dees
Have you ever hesitated to re-run tests after making a change, because you don't want to re-run all of your tests? In today's episode, you'll learn how to use RSpec's …
Episode #505: Subprocesses Part 15: Capture
Ruby's backtick operator is great for quick-and-dirty output capture, but what do you use when you need more power?
Episode #503: Subprocesses Part 14: Advanced Wait
Learn the nuances of Ruby's Process.wait, Process.wait2, and Process.waitall system calls, and how to choose between them based on your use case.