Dot syntax and dig! for Ruby hashes, benchmarked

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • HashDot

    Use dot syntax with Ruby hashes.

  • hash_dot gem. Also, my benchmark code is based on the benchmarks in hash_dot's README.

  • digbang

    Safer Ruby hash and array traversal

  • The dig_bang and deep_fetch gems (#3 and #4) add this same "dig with errors" but without the above downsides. The benchmarks suggest that they're pretty slow, but actually my tests were only about 10% slower when using them.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • deep_fetch

    easily fetch values from nested ruby hashes

  • The dig_bang and deep_fetch gems (#3 and #4) add this same "dig with errors" but without the above downsides. The benchmarks suggest that they're pretty slow, but actually my tests were only about 10% slower when using them.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts