Beginning on the implementation of a Ruby PulseAudio API.
Category: S2 Premium
Episode #053: Selectively Run Tests
Selectively running tests can be a lifesaver in a large codebase. This episode covers how to run just the tests you care about in both MiniTest and RSpec - including …
Episode #050: Include Namespace Module
Sometimes a utility module is overkill. In this episode, we make a namespace module do double-duty.
Episode #047: FFI Part 2: Smoke Test One
In part 2 of this series, we buy ourselves some peace of mind with a simple smoke test. The code for this episode can be found here: https://github.com/avdi/pulse-ffi/tree/RubyTapas047
Episode #044: #one?
Somtetimes you need to know if exactly one element in a collection has a given property. For that situation, we have the #one? predicate method.
Episode #043: Exclusive Or
This episode looks at Ruby's logical XOR operator, and how it can be useful in checking that a method was called with the correct optional arguments.
Episode #042: Streaming
Does code optimized for RAM usage need to be ugly? Find out, in today's episode!