Hacker News new | ask | show | jobs
by olov 4623 days ago
For many problems, you never need a stringmap (in any language so JS). For a lot of problems, you do.

Perhaps the administrative software for this school wanted to display the most popular names in each class, which you'd typically do with a stringmap and many would mistakenly do with an object. That's the same problem as counting word frequencies in a sentence.

__proto__ bugs are a real thing, and it affects small and large apps (Google Apps comes to mind).

1 comments

True. Those are both examples of problems where a string map using user supplied strings as keys would be the best solution to the problem.