Alkesh Ghorpade

Alkesh Ghorpade

I am a seasoned developer with over 9 years of experience in Ruby on Rails and Golang. My passion lies in tackling complex data structures and algorithm problems, always pushing myself to learn and grow. In my downtime, I find solace in the pages of books and the soothing sounds of a guitar. But I'm not just a one-trick pony! I love to stay active and challenge myself in other ways too. Whether it's on the football pitch, cricket field, table tennis table, or badminton court, I'm always up for some fun activities.
authorImg Alkesh Ghorpade

Rails 6 insert_all and upsert_all

Learn how Rails 6 simplifies bulk inserts and upserts with insert_all and upsert_all methods in ActiveRecord
authorImg Alkesh Ghorpade

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.
authorImg Alkesh Ghorpade

Master Rails Enums: A Complete Guide

A detailed guide on what enums are and how to create, configure, and use them in Ruby on Rails for cleaner, more efficient code
authorImg Alkesh Ghorpade

Ruby 3.1 MatchData#match Methods

Ruby 3.1 MatchData#match returns the substring corresponding to the argument, while MatchData#match_length returns the length of the captured substring.
authorImg Alkesh Ghorpade

Rails 7 introduces ActiveModel::API

ActiveModel::API allows adding more functionality to ActiveModel::Model and makes itself a minimum API to interact with Action Pack and Action View.
authorImg Alkesh Ghorpade

Rails 7 Adds in_order_of Query Method

Starting with Rails 7, we can return ActiveRecord::Relation results in provided series using the in_order_of method.
authorImg Alkesh Ghorpade

Rails 7 Retry Jobs Indefinitely

Rails 7 adds :unlimited option to retry_on attempts, allowing jobs to retry indefinitely until the failure is resolved.
authorImg Alkesh Ghorpade

Rails 7 if_exists for Foreign Keys

Rails 7 adds support for `if_exists/if_not_exists` on `remove_foreign_key/add_foreign_key` in migrations to silently ignore raised exceptions.
authorImg Alkesh Ghorpade

Rails 7 adds range serializer for ActiveJob

ActiveJob in Rails 7 allows a range to be passed as an argument to perform method.
authorImg Alkesh Ghorpade

Ruby 3.1 adds Array#intersect? method

Ruby Array#intersect? method will return true or false based on common elements present in the two arrays.
authorImg Alkesh Ghorpade

Rails 6.1 Adds if_exists to remove_index

Rails 6.1 adds the `if_exists` option in `remove_index` which when set to true won't raise an error if the index doesn't exist.
authorImg Alkesh Ghorpade

Rails 6.1.1 where with Table Aliases

Rails 6.1 allows where clause queries to reference associations used in `join` or `includes` clause via alias names.
authorImg Alkesh Ghorpade

Rails 6.1 Role Switching and Sharding

Rails 6.1 has added support for switching connections for one database instead of all databases
authorImg Alkesh Ghorpade

Rails Configurable web_image_content_types

Rails adds config.active_storage.web_image_content_types to make image content types configurable, supporting formats like webp.
authorImg Alkesh Ghorpade

Rails 6.1 ActiveModel::Errors as Objects

Rails 6.1 changes ActiveModel::Errors from Hash to array of Error objects with where, add, delete.
authorImg Alkesh Ghorpade

Using Interactors in Rails Applications

Interactors provide a common interface for performing complex user interactions.
authorImg Alkesh Ghorpade

Rails - Added sub seconds to Time inspect

Rails has added sub seconds to ActiveSupport::TimeWithZone#inspect method.
authorImg Alkesh Ghorpade

Rails Adds Schema Cache Path Configuration

Rails now exposes a new configuration for specifying the location of the schema cache file. This can be done in database.yml using schema_cache_path key.
authorImg Alkesh Ghorpade

Rails Adds API for Multiple Database

Rails adds ActiveRecord API connects_to and connected_to for switching connections to support multiple databases.
authorImg Alkesh Ghorpade

Rails Disallowed Deprecations Support

Rails has added support to configure disallowed deprecations.
authorImg Alkesh Ghorpade

Rails 6 ActiveSupport Unicode Deprecations

Rails 6 has deprecated methods in Unicode and Chars support for ActiveSupport in favor of using ruby 2.3+ String methods directly.
authorImg Alkesh Ghorpade

Rails 6.1 Adds Multiple Storage Services

Rails 6.1 adds support to configure storage services for individual attachment.
authorImg Alkesh Ghorpade

Ruby 2.7 Warns Singleton Class Yield Syntax

Ruby 2.7 singleton class yield syntax is warned and will be deprecated in Ruby 3.0.
authorImg Alkesh Ghorpade

Ruby 2.7 Separates Time#inspect from

Ruby 2.7 separated Time#inspect from Time#to_s and added sub seconds
authorImg Alkesh Ghorpade

Rails 6 Adds Ability to Block Database Writes

Rails 6 adds the ability to block writes to a database even if the database user is able to write using connection.while_preventing_writes
authorImg Alkesh Ghorpade

Rails 6 - Active Storage changes

Rails 6 brings in image_processing gem, support for different image types and improvements in Active Storage.
authorImg Alkesh Ghorpade

Rails 6 adds after_save_commit

Rails 6 adds after_save_commit callback shortcut for cleaner transaction handling in ActiveRecord models.
authorImg Alkesh Ghorpade

Understanding Ruby Lazy Enumerators

Ruby provides support for lazy loading enumerators, allowing efficient processing of large or infinite sequences.
authorImg Alkesh Ghorpade

Rails 6 Adds delete_by and destroy_by Methods

Rails 6 ActiveRecord::Relation added two new methods delete_by and destroy_by.
authorImg Alkesh Ghorpade

Distance Calculation in Ruby Using RGeo

Distance/Geospatial calculations in Ruby using RGeo.
authorImg Alkesh Ghorpade

Rails 6 Custom Serializers for ActiveJob

Rails 6 introduces ability to provide custom serialization of ActiveJob arguments.
authorImg Alkesh Ghorpade

Rails 6 Adds Support for Disabling Advisory

Rails 6 adds support for database configuration to disable advisory locks
authorImg Alkesh Ghorpade

Rails 6 - I18n key support for submit_tag key

Rails 6 adds I18n style locale key support to submit tag
authorImg Alkesh Ghorpade

Rails 6 Adds Server Handler Option

Rails 6 introduced --using or -u option for specifying the rails server