In this episode we finally discover why the Timeout module is unsafe, and a facility new in Ruby 2.0 that makes dealing with thread interruptions much less error-prone.
Search results for: episode 20
616 results found.
Episode #137: Mutex
In this episode we introduce the concept of a "critical section", and learn about one of the fundamental primitives that makes multithreaded programming possible.
Episode #124: Elixir
Today we take a brief sojourn out of Ruby and into the Elixir programming language. I'll show you one of my first programs in Elixir and point out how the …
Episode #109: SAX
This episode takes a look at how to use the Nokogiri gem to extract data from large HTML documents without reading the whole document into memory.
Episode #108: The Trouble With Nil
This episode explores some of the many ways we can come across a nil value, and why that's a problem.
Episode #101: Intention Revealing Message
Not all refactoring is about eliminating duplication. In today's episode we'll refactor some code for the purpose of revealing intent to future readers.
Episode #092: Coincidental Duplication Redux
Katrina Owen contributed an example of coincidental duplication I liked so much I decided to make a second episode about it. Enjoy!
Episode #080: Splat Basics
Ruby supports a limited form of destructuring assignment, in the form of the "splat" operator. In today's episode we go over splat basics, in order to lay a foundation for …
Episode #066: Caching an API
Web services are slow to request and often have rate caps. A cache can cut down on requests to remote APIs. But how best to design the interface between the …