Four names, one job
transcript
Four languages. One job: count words. Different names.
Python calls it a dict. Java calls it a HashMap. C plus plus calls it unordered map. Learn the job, not the name. Check each difference once. What is the job? Four boxes, one skill. The costs will match. Then reuse them always.
JavaScript calls it a Map. The job is the same. Names differ between boxes. Then move between languages freely. Which tool does it? Practise in your own language. Only the edges differ.
Python keeps insertion order. JavaScript does too. Java and C plus plus promise nothing. Costs stay the same. Keep your own notes. What breaks the tie? Then read the other three. Edges are small and few.
Write a tie rule. Never trust map order. Write the same steps everywhere. Ask the same questions each time. Then write the code. The jobs will match. Learn them once.
Learn the job, not the name. Full breakdown in the lecture.