Lazy-load Rails partials via CableReady
For example, libs like CableReady and Futurism can lazy load partials so unobtrusively that the notion of adhering to the formality of REST, with its attendant new routes, controllers, etc..., would be far too much ceremony for matching use cases.
Ruby on Rails
Enforcing strict RESTful routes and controllers is perhaps the most impactful technique that influenced my usage of Ruby on Rails for the better.
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Use Hotwire in your Ruby on Rails app
Hotwire, while very cool, introduces new concepts that impose a higher cognitive cost and forces you to rethink how to best structure a Rails app. I view Hotwire as: REST semantics for everything + async server triggered CRUD updates.
Build reactive applications with the Rails tooling you already know and love.
One of the original goals of CableReady and StimulusReflex was to work seamlessly with traditional HTTP server rendered Rails apps (pre Hotwire) without requiring significant architectural changes or forcing a proliferation of new routes, controllers, or views/partials etc... We basically wanted a way to gradually introduce robust real-time and reactive behavior into traditional Rails apps with as little friction as possible. The idea being to allow people to leverage the work that had already been done rather than forcing a rethinking of the app. I view CableReady/StimulusReflex as as: REST + RPC sprinkles + async server triggered DOM behavior.
Sort tables (almost) instantly with Ruby on Rails and Turbo Frames
8 projects | dev.to | 20 Sep 2021
Server-rendered modal forms on Rails with CableReady, Mrujs, Stimulus, and Tailwind
8 projects | dev.to | 9 Sep 2021
Building a Real Time Scoreboard with Ruby on Rails and CableReady
6 projects | dev.to | 18 Aug 2021
Am I Principal Skinner? Complexity of front-end is just baffling to me now
3 projects | reddit.com/r/webdev | 3 Aug 2021
Frontend, backend - let's be friends again
2 projects | dev.to | 20 Apr 2021