---
title: "Discussion on \"Hash With Indifferent Access vs Ruby Hash\" | Hashnode"
description: "Discussion on \"Hash With Indifferent Access vs Ruby Hash\". I was recently going through a PR and realised we were creating new hash in 2 ways across our codebase.\n\nhash = HashWithIndifferentAccess.new\nhash = {}\n\nIt just occured to me I never read up on which way is better or why we do this. So here's a small..."
url: "https://hashnode.com/posts/hashwithindifferentaccess/65377d54bc65df601d32f5ce"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Hash With Indifferent Access vs Ruby Hash](https://www.dsdev.in/hashwithindifferentaccess?utm_source=hashnode&utm_medium=feed)

I was recently going through a PR and realised we were creating new hash in 2 ways across our codebase. hash = HashWithIndifferentAccess.new hash = {} It just occured to me I never read up on which way is better or why we do this. So here's a small...

Jan 10, 2022 · 1 min read · dsdev.in  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

[Dhaval Singh](https://hashnode.com/@DhavalSingh)

@DhavalSingh · Bangalore, India

  
[View profile](https://hashnode.com/@DhavalSingh)

Writing about Software Development, Backend in particular!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
