Learn how to eliminate a whole class of possible user interface mistakes by modifying your API design, making it impossible to even express incorrect usage.
Tag: user input

Episode #434: Scanf
Today we learn how to match patterns and parse out values all at once.

Episode #431: Exceptional Value
In this sequel to #430, we apply a powerful pattern for encapsulating problem values.

Episode #401: Whole Value
In this episode, we address the Primitive Obsession code smell with a lesser-known design pattern.

Episode #338: Error Value
Picking up where we left off in #337, today we look at how to add extra information to an error flag value, in a backwards-compatible way.

Episode #307: Command Loop
In this episode we'll build a simple command-prompt loop in Ruby.

Episode #058: ARGF
This episode explores ARGF, a powerful object for working with input files in command-line programs.