Siddharth Shringi

Siddharth Shringi

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

Ruby 3.4 Makes "it" As Default Block

To add more readability Ruby makes "it" as a default block parameter.
authorImg Siddharth Shringi

Ruby 3.4 Deprecation Warnings for Mutable String Literals

Ruby 3.4 introduces "chilled strings" — mutable string literals that emit a deprecation warning when mutated, nudging developers toward frozen strings.
authorImg Siddharth Shringi

A Quick Guide to Ruby's Time and DateTime

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

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

Rails 7.2 Rate Limiting in Controllers

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 gem by Default

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

React Code-Splitting for Performance

Code-splitting helps divide large code bundles into smaller ones, which can then be loaded on demand.
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.