Rails does not require role when to be passed to connected_to

The connected_to block no longer throws an ArgumentError when called without a role parameter so as to pave the way for a more simplified and buildable syntax.

How does Ruby manage memory?

Each programming language has its version of memory management so, let us look into how Ruby does this under the hood.

Step-by-step guide to GSAP Library

With GSAP library, we can create beautiful animations using Tweens, ScrollTrigger, and Timelines

Employees maketh Businesses

How Saeloun runs with the help of its Employees and tries giving back

Rails 7 adds support for deferrable foreign key constraints in PostgreSQL

By default, foreign key constraints in PostgreSQL are checked after each statement. This works for most use cases but becomes a major limitation when creating related records before the parent record is inserted into the database.

Rails adds the ability to prevent unwarranted shard swapping

Rails provides the config option ActiveRecord::Base.prohibit_shard_swapping that prevents swapping of database shards.

Optimize large React app performance by code-splitting

Code-splitting helps divide large code bundles into smaller ones, which can then be loaded on demand. It helps in reducing the initial load time of the application.

Rails 7 adds optional transaction arguments to with_lock

With Rails 7 we can pass transaction arguments like isolation, joinable, etc directly to with_lock

Rails loads ActionCable via Zeitwerk

Zeitwerk is a new thread-safe code loader introduced in Rails 6. Now, ActionCable and other related modules are loaded via Zeitwerk.

ECMAScript 2022: Ergonomic brand check for private fields

ECMAScript 2022 provides a simpler way to check if an object has a given private field using the 'in' operator.