New answers tagged map
0
votes
"Use map instead of class to represent data" -Rich Hickey
Here, a Person is given as a map from String to Object. Your map might for example contain three Strings "Name", "Address" and "Date of birth". The API does not know what ...
0
votes
"Use map instead of class to represent data" -Rich Hickey
Death by Specificity
Using a map is better than inventing a new class because maps have a consistent interface. From Clojure Made Simple (video excerpt, transcript):
Most information objects are just ...
Top 50 recent answers are included
Related Tags
map × 63java × 14
javascript × 6
data-structures × 6
database × 5
design-patterns × 4
algorithms × 4
hashing × 4
design × 3
database-design × 3
web-applications × 3
data × 3
haskell × 3
collections × 3
google × 3
dictionary × 3
c++ × 2
functional-programming × 2
multithreading × 2
class × 2
scala × 2
caching × 2
array × 2
sorting × 2
storage × 2