· Ruby
Rollup vs Esbuild for Rails
Rollup and Esbuild can both handle JavaScript files in a Rails app. I made some little experiments, both locally and in-production.
Rollup and Esbuild can both handle JavaScript files in a Rails app. I made some little experiments, both locally and in-production.
A short memo about how to iterate over a Ruby array
Livereload a Rails app on your local machine is still not available natively. Maybe in next version of Rails, but not yet.
reduce in Ruby seems tricky if you didn't used it for a long time. Principle is simple, but let's see the syntax.
A quick memo about how to add or remove a Stimulus controller - I recommend to rely on generator this time.
Turbo is precisely made to speed up page transition, but sometimes it's better to have a slower page transition - that works.