Persistent Ruby

Work skillfully with the filesystem, data storage formats, and databases in Ruby.

Sooner or later any software application is going to exit, either normally or due to an error. And if there is program state to be preserved for the next run, it needs to be stored somewhere other than main memory. Usually this means either to the computer’s filesystem, or to a database.

The term for this kind of state-storage is persistence, and that’s the topic of this garden path. Graceful.Dev / RubyTapas has tackled a number of topics related to filesystem and database storage, and this course will give you a suggested path through them.

Subjects you’ll learn about in this path include:

  • Ruby APIs for reading from and writing to disk
  • How to traverse the filesystem to find files and create directories
  • Using temporary files
  • How to work with structured data storage formats like YAML and JSON
  • Essential gems for interacting with database management systems
  • Filesystem minutiae like choosing between “text mode” and “binary mode”

This course is a Graceful.Dev Garden Path, meaning it is a suggested pathway through a curated selection of self-contained topics. Its status is mature: new topics may still be added, but it is a fully fleshed-out course of study.

Prerequisites: Students are expected to have a good familiarity with Ruby. This course is part of the Ruby for Tools and Glue Garden Tour.

Not Enrolled

Course Includes

  • 6 Modules
  • 25 Topics