What Is MJIT in Ruby 2.6 & How Does It Work?

Ruby’s performance has been improving a lot, version after version… and the Ruby development team is making every effort to make Ruby even faster! One of these efforts is the 3×3 project. The goal? Ruby 3.0 will be 3 times faster than Ruby 2.0. Part of this project is the new MJIT compiler, which is … Read more

How to Use The Ruby Alias Keyword

You can give an alternative name to a Ruby method in two ways: Because they do the same thing in slightly different ways this can be a confusing topic. This image is a summary of the differences: Let’s explore these differences in more detail to get a solid understanding! The alias Keyword First we have … Read more

9 New Features in Ruby 2.6

A new version of Ruby is coming with new features & performance improvements. Would you like to keep up with the changes? Let’s have a look! Endless Ranges Ruby 2.5 & older versions already support one form of endless range (with Float::INFINITY), but Ruby 2.6 takes this to the next level. The new endless range … Read more

Ruby Templating Engines: ERB, HAML & Slim

ERB is a templating engine. A templating engine allows you to mix HTML & Ruby so you can generate web pages using data from your database. ERB is Rails default engine for rendering views. Note: Rails uses an implementation called erubi instead of the ERB class from the Ruby standard library. As you’ll learn later … Read more