DEV Community

Discussion on: Baby talk for computers (It's all key: value pairs)

Collapse
 
drbragg profile image
Drew Bragg

Don't forget Ruby hash.

ivy = {
  key: "value",
  name: "Ivy",
  cats: 0
}

The old way used => instead of : but same basic concept.

Collapse
 
perpetual_education profile image
perpetual . education

Had to draw the line somewhere! : ) - but yeah / "hash" is a good one. When we started using Ember everyone was calling everything a hash / probably because they were from rails backgrounds - and we were like... isn't that an Object? haha. "Dictionary" seems like a pretty good word... but there's probably a better name for this 'concept.'