Ruby
Ruby 3.3 Fixes Range#size Rational Bug
Ruby 3.3 fixes Range#size to correctly count elements when the endpoint is a Rational number.Sort Rails Models By Association Order
Sort your Rails models by the order of their belongs_to associations using ActiveRecord::Reflection.Ruby Data Class for Immutable Objects
The Data class helps define simple classes for value-alike objects that can be extended with custom methods.Rails Parameters.to_h Accepts Block
ActionController::Parameters.to_h will now receive a block just like Hash#to_h and achieve parity.Guide to Gemfile and Gemfile.lock
An in-depth overview of what a Gemfile is, how it works, and its role in managing Ruby dependenciesRuby 3.1 Variable Width Allocation
In this blog let us understand how Variable Width Allocation works in RubyHow Does Ruby Manage Memory Allocation
Each programming language has its version of memory management so, let us look into how Ruby does this under the hood.Ruby Fibers 101: A Complete Guide
Ruby 3 focuses more on concurrency with the introduction of Ruby Fibers and the Fiber Scheduler Interface.Ruby 3.1 adds error highlighting gem
With changes in Ruby 3.1, we will be able to know which object is nil when an error gets raised.Ruby 3.1 adds Class#subclasses
Ruby 3.1's new method Class#subclasses returns all classes directly from the receiver without adding singleton classes.