Jeremy Evans (of Roda and Sequel fame) created an interesting benchmark comparing memory and runtime performance of large number of routes (up to 10000) in various Ruby web frameworks. I was immediately interested and ran it to get the numbers.
Continue reading “Rails handles large number of nested routes better than Sinatra”Displaying, downloading and streaming files with Active Storage
Here is a quick’n’dirty cheat sheet for basic Active Storage actions.
Continue reading “Displaying, downloading and streaming files with Active Storage”How fast is Ruby 2.5, 2.6 and 2.6 –jit in generating Prawn PDFs
Takashi Kokubun (known as k0kubun), a Ruby JIT committer, asked the community for more benchmarks on upcoming Ruby 2.6 JIT. I put together one for generating PDF documents with InvoicePrinter (based on Prawn). Continue reading “How fast is Ruby 2.5, 2.6 and 2.6 –jit in generating Prawn PDFs”
Taking Stimulus.js for a ride
Stimulus.js is one of the new front-end framework on the market. It’s goal is to be a modest JavaScript framework for the HTML you already have, which makes it ideal as an alternative to jQuery or framework-less JavaScript. Let’s see how it feels to replace VanillaJS with Stimulus.js on one concrete example. Continue reading “Taking Stimulus.js for a ride”
Building auto login for fast Rails development with Sorcery
Login as various users during development can become pretty annoying especially since it’s very difficult to remember all of the passwords across users or apps. If your app authentication happen to be built with Sorcery here’s is a very easy and straightforward way how to implement auto login. Continue reading “Building auto login for fast Rails development with Sorcery”
Creating accessible visual select in pure JavaScript without dependencies
How to create a visually more appealing select in pure JavaScript without any framework. Continue reading “Creating accessible visual select in pure JavaScript without dependencies”
Debugging silently failing compilation aka Webpacker can’t find application.js in public/packs/manifest.json
Webpacker can pretend everything went smooth with the compilation… until one loads a page with javascript_pack_tag
helper.
Continue reading “Debugging silently failing compilation aka Webpacker can’t find application.js in public/packs/manifest.json”
Cleaning up systemd journal logs on Fedora
systemd journal logs take a lot of space after a while. Let’s wipe them out! Continue reading “Cleaning up systemd journal logs on Fedora”
I am writing an introductory book to web application deployment
I decided to write a book (at the very least attempt to). And yes, there will be some Fedora inside! Continue reading “I am writing an introductory book to web application deployment”
Making a Ruby executable with ruby-packer
You can make a single executable from your gem or even a Rails application. I just tried ruby-packer and it works as promised. Continue reading “Making a Ruby executable with ruby-packer”