Continuing from the last episode's them of exploring the Range type, today we look at one of Ruby's more peculiar legacies from AWK and Perl.
Search results for: episode 20
616 results found.
Episode #210: Implicit Conversion
Have you ever wondered why Ruby has both #to_i and #to_int methods? Or both #to_a and #to_ary? In today's episode we'll answer this question, and look at how we can …
Episode #202: Identity And Equality
Today's episode deals with the concepts of identity and equality - what makes one object equal to another.
Episode #196: String Templates
Have you ever wanted a way to customize the format of certain generated strings, but felt like ERB or some other templating language was overkill? If so, today's episode should …
Episode #176: Dotenv
In this episode we look at a tool that I've found invaluable for managing configuration in my applications.
Episode #160: Reduce Redux
Today we revisit the Enumerable#reduce method, addressing some viewer feedback about seed values as well as exploring a novel application of reduce for traversing data structures.
Episode #158: Constant Lookup Scope
This episode takes a look at some potentially surprising rules for how Ruby looks up constants. Notes: "Everything you ever wanted to know about constant lookup in Ruby", by Conrad …
Episode #150: Stats
Sooner or later you'll need to generate statistics from a collection. In this episode, we look at how to produce min, max, sum, average, median, and standard deviation from a …
Episode #136: Dead Thread
Concurrent programming is hard, and one of the things that makes it so hard is that a thread can unexpectedly die without giving the programmer any indication. In this episode …