Back to TILs

Today I Learned

Ruby's dig method for safe nested hash access

Use `dig` to safely navigate nested hashes without worrying about nil values: ```ruby user_data = { user: { profile: { name: 'John' } } } user_data.dig(:user, :profile, :name) # => 'John' user_data.dig(:user, :settings, :theme) # => nil (no error!) ```

Learned something new? Share it with others!