Apoorv Tiwari

Apoorv Tiwari

Apoorv is a Ruby on Rails and React Developer with 3 years of experience.
authorImg Apoorv Tiwari

Sidekiq To SolidQueue Migration

Migrating the Miru app from Sidekiq to SolidQueue eliminated the dependency on Redis, reducing costs by utilizing database for job storage.
authorImg Apoorv Tiwari

What Is New In Rails 7.2: Key Features

Rails 7.2 has just been released, packed with a range of exciting updates that enhance the Rails development experience.
authorImg Apoorv Tiwari

Rails in_order_of Filter Option

Rails added the filter option to in_order_of to prioritize the specified values without filtering the results
authorImg Apoorv Tiwari

BatchEnumerator#destroy_all Returns Count

Rails 7.2 enhances BatchEnumerator#destroy_all to return the count of destroyed records.
authorImg Apoorv Tiwari

Rails Log Output with SQL Query Count

Rails adds SQL query counts to logs, improving developers ability to optimize application performance by providing more detailed data on database interactions
authorImg Apoorv Tiwari

What is New in Ruby 3.3: Key Features

Ruby 3.3 boasts performance boosts with faster YJIT, M:N threads, RJIT compiler, Prism parser, and IRB improvements.
authorImg Apoorv Tiwari

Ruby 3.3: String.dup Now as Fast as String#+

Ruby 3.3 optimizes String.dup to match the speed of String#+, allowing developers to choose based on preference without sacrificing performance.
authorImg Apoorv Tiwari

Rails 7.1 Enum Validate Option

Rails 7.1 added a validate option for enums, which will allow developers to validate the passed enum values before saving it.
authorImg Apoorv Tiwari

Ruby 3.3 Duplicate Keyword Argument Fix

Ruby 3.3 fixes inconsistent warnings for duplicate keyword arguments
authorImg Apoorv Tiwari

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.
authorImg Apoorv Tiwari

Limiting Maximum Index Name Length in Ruby

Rails 7.1 defined maximum limit of 62 bytes for auto-generated index names.
authorImg Apoorv Tiwari

Rails 7.1 SSL Enforcement by Default

Rails 7.1 enables force_ssl=true in production by default.
authorImg Apoorv Tiwari

Connecting AWS RDS with an EC2 instance

Connect AWS RDS with an EC2 instance while using Amazon Linux 2023 OS image and MySQL as a database
authorImg Apoorv Tiwari

Breaking changes in Cypress 10.0

Cypress version 10.0 was released last month with a lot of new features, changes, bug fixes, and deprecations.
authorImg Apoorv Tiwari

Cypress 9.3.0 selectFile Command

Cypress introduced native support for file upload and selecting files in an HTML5 input element.
authorImg Apoorv Tiwari

Cypress 9.0.0 Duplicate Command Error

Adding an existing command with Cypress.commands.add() will throw an error indicating that overwrite should be used in these situations instead.
authorImg Apoorv Tiwari

Cypress cy.pause() in Headed Mode

cy.pause() will not be ignored and pause a test when --headed and --no-exit flags are passed to cypress run.
authorImg Apoorv Tiwari

Cypress 8.6.0 Screenshot Overwrite

Cypress introduced the overwrite:true as an option to cy.screenshot() command to overwrite existing screenshots with the same file name.
authorImg Apoorv Tiwari

Cypress version 8.5.0 adds select by index

Cypress introduced the feature to select an option by index within the .select() command.
authorImg Apoorv Tiwari

ES2021 Promise.any and AggregateError

ES2021 introduces Promise.any() which resolves with the first fulfilled promise, and AggregateError for handling multiple rejections.
authorImg Apoorv Tiwari

ES2021 replaceAll and Numeric Separators

ECMAScript 2021 introduces replaceAll() method and numeric separators for better string manipulation and number readability.
authorImg Apoorv Tiwari

Rails 7 Context for Unpermitted Params

Rails 7 enables passing context to ActionController::Parameters providing more information to the developer.
authorImg Apoorv Tiwari

Rails 7 Scoping Applies to All Queries

Rails 7 allows passing all_queries option to the scoping method. This change allows the scoping method to work on all queries for a model in a block.