Tutorials




How to fake time in a Postgres database: And an example Ruby on Rails app, too!
First things first, I am writing this despite my general opposition to faking time. Typically, when invoking an API in a unit or integration test, it’s preferable to pass time as a value as opposed to mutating a global clock. And if you’re writing...



Ruby 3.1 introduces Variable Width Allocation for Strings | Saeloun Blog
This post is in continuation of part 1 and in this blog, we will take a deeper look at how Variable Width Allocation works and how it can improve Ruby’s memory performance. Before getting into the VWA let us understand how large objects get alloca...



Performance comparison by reading terminal logs - Ruby 2.6.4 VS Ruby 2.7.0 | RubyOnRails
Playing with one of my current projects I wanted to do some simple terminal log comparison by running sites Dashboard controller few times.In testing I used Rails 6.0.1 and Ruby 2.6.4 Vs Rails 6.0.2.1 and Ruby 2.7.0Testing was done on my local dev...