Upgrades: and Rails (7.2 to 8.0)

This turns out to be a major upgrade for ggKbase because we are adopting the Rails new native trifecta, Solid Queue, Solid Cache, and Solid Cable, to replace a number of third-party gems and systems, such as Sidekiq, Redis, and Memchached that are used for background jobs and caching.

In line with Rails philosophy of dropping as many dependencies as possible, three more major changes in the near future are

  1. Replace Sprocket with Propshaft
  2. Replace HAML with native ERB
  3. Replace Devise with native authentication

To move away from Sprocket, we will replace Bootstrap (which requires Sprocket) with Tailwind CSS (utility-first methodology). That would require some learning, but many adopters have said that it will be easier and more intuitive in the long run. Dropping Bootstrap will affect a lot of View code base, but hopefully it will inspire a facelift and new UX for ggKbase.

HAML was adopted for building the View components since the inception of ggKbase, probably for the purpose of writing fewer lines of code. However, the reasons for going back to the default includes dropping a third-party dependency, ERB performing faster than HAML, and most Rails example codes being written in ERB.

More on dropping Devise later since the native authentication is not quite mature yet. And it does not include sign-up. However, I trust the Rails team will continue to develop this feature so that it will be even more production ready soon.

Leave a Reply