Legacy Already

The other night I was looking over an old app of mine, the Chore Scheduler. It started as a desire to rip out references to unused Rails engines, such as ActionCable and ActionMailer. Since these are not used by the app, but were included by the basic rails new command. Off we go on another adventure. You can take a look at the repo as it’s open on Github. Runtime Dependencies I started out by ripping out the require rails/all in my application.rb. This all file requires a bunch of pieces, such as ActiveRecord, ActiveStorage, ActionCable, etc. So by removing it, and manually adding each engine that I actually want to use, I can reduce the amount of code loaded at runtime. Not a huge win, but why not? ...

April 14, 2021 · Thomas Ruggeri