Today we discuss the downsides of using require_relative, and explore a more robust way to handle code loading within projects and libraries.
Category: Episodes
Episode #241: Match
In this episode, we look into how to get the most out of the Regexp#match method.
Episode #240: Relative Require
Today our ongoing series on loading code brings us to the topic of loading features relative to the current file.
Episode #239: Parameter Default
Think you know everything there is to know about parameter defaults? Think again!
Episode #238: Gem Require
In this episode we dig into RubyGems in order to understand how it augments Ruby's built-in code loading mechanisms.
Episode #237: Require
As we continue to talk about the process of loading code in Ruby, today we look at how requiring features differs from loading files.
Episode #236: Wrapped Load
As we continue our exploration of how code is loaded into Ruby processes, today we take a look at a technique for running an external script inline without polluting the …
Episode #235: Load
Today's episode kicks off a little series on loading code in Ruby. To start off, we'll look at what it would take to recreate Ruby's logic for locating code files …
Episode #234: Warn
Today we talk about how to let client coders know that something might be amiss... the Ruby way.