Siddharth Shringi

Siddharth Shringi

Siddharth is a Ruby on Rails and ReactJs Developer.
authorImg Siddharth Shringi

Ruby 3.4 Enable frozen_string_literal by default

In Ruby 3.4 string literals in files without a frozen_string_literal comment now behave as if they were frozen.
authorImg Siddharth Shringi

A Quick Guide to Ruby's Time and DateTime Classes

Let's examine when to use the Time class and when to use the DateTime class
authorImg Siddharth Shringi

Rails 7.2 adds Rubocop by default to new applications

All new applications using Rails 7.2 will have rubocop gem by default.
authorImg Siddharth Shringi

Rails 7.2 Adds Rate Limiting to Action Controller

Rails 7.2 provides in built method rate_limit to define rate limiting rules in the controller itself.
authorImg Siddharth Shringi

Rails 7.2 adds Brakeman by default to new applications

All new applications using Rails 7.2 will have Brakeman gem by default for static analysis for security vulnerabilities.
authorImg Siddharth Shringi

Rails 7.1 Improves Support for Custom Namespaces

This patch improves the support for defining custom namespaces while autoloading files.
authorImg Siddharth Shringi

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.
authorImg Siddharth Shringi

Rails 7 allows permitting numeric params

Rails 7 eliminates the issue of permitting nested hash. Now required attributes can be permitted by calling the permit method directly on the parent hash.