Prateek Choudhary

Prateek Choudhary

Prateek focuses on delivering impactful and reliable digital products.
authorImg Prateek Choudhary

Rails 7 MemCacheStore Accepts nil Address

Those migrating from :dalli_store to :mem_cache_store can now pass an explicit nil for its addresses argument.
authorImg Prateek Choudhary

How to investigate your build size in Webpack

Let us look at a few handy tools that can help us in analyzing and reducing our bundle size.
authorImg Prateek Choudhary

Ruby Adds Endless Method Definition

Ruby has added a new experimental syntax for defining single-line methods without using the end keyword.
authorImg Prateek Choudhary

Using Optimizer Hints in Rails

Optimizer Hints allows us to control the query optimizer of a database system. Rails 6 has added support to provide Optimizer Hints.
authorImg Prateek Choudhary

Ruby Hash#transform_keys Accepts Key Mapping

Ruby Hash#transform_keys now also accepts a hash that maps the existing hash keys to new keys
authorImg Prateek Choudhary

Ruby 2.7 removes taint checking mechanism

Ruby 2.7 access and setting of $SAFE is now always warned. $SAFE will become a normal global variable in Ruby 3.0
authorImg Prateek Choudhary

Rails 6.1 where.missing to Find Orphan Records

Rails 6.1 adds where.missing query method to easily find records with missing associations.
authorImg Prateek Choudhary

Ruby 2.7 Dir#glob Disallows NUL-separated

Ruby 2.7 prohibits the problematic '\0' separated string as the parameter for Dir#glob and Dir#[]
authorImg Prateek Choudhary

Who was hiring at RubyConf 2019?

List of companies hiring at RubyConf 2019 organized in Nashville.
authorImg Prateek Choudhary

Rails 6 adds Purpose Metadata to Cookies

Rails 6 adds purpose metadata to cookies to prevent attackers from copying the value of one cookie and use it for another.
authorImg Prateek Choudhary

Rails 6 removes Action View helper image_alt

Rails 6 removes the deprecated `image_alt` helper from Action View.
authorImg Prateek Choudhary

Rails 6.1 adds HTTP Feature Policy

Rails 6.1 adds a DSL for configuring Feature-Policy HTTP headers, letting you control browser APIs like camera, geolocation, and payment.