Refactoring App Features into Modules in Ruby

Refactoring App features into Modules can make debugging, managing, and extending the code base easier — if done right

Recently I was pair-programming on a Ruby CLI app to help manage subscription services for my phase 1 project at Flatiron School. After building out the models and schema utilizing ActiveRecord my partner and I began writing out the primary app file that would run and manage the app interface. After getting through just the user login control, we quickly…