Use Maps more and Objects less

preview_player
Показать описание

#javascript #performance
Рекомендации по теме
Комментарии
Автор

It's worth noting that "frequently" in the terms of the MDN docs means an insane amount - ie orders of magnitudes more than you'd need for most use cases. The inconvenience in using maps, and the gotchas around memory mean that they're usually just a premature optimization and not really a good thing to recommend to a beginner.

zacharyallen
Автор

it is amazing how you make these videos better and better with each and every one, thank you

zenner
Автор

Awesome stuff Steve! So happy I've found this channel. Great format, presentation and topics. Keep it up!

bjul
Автор

This is a very good way to present content, especially for more experienced devs. Subscribed.

sanjarcode
Автор

One of the best channel for JavaScript!

muhammadfitrie
Автор

I read the blog earlier this week, and now seeing this again is pretty cool.

syrix
Автор

This is extremely useful content. I have not come across anything similar elsewhere. Keep it up.

Pancakes
Автор

Very well explained and good examples too!

angusbosmans
Автор

Your way of explanation is excellent. Precise and focused. Thanks...

talatkuyuk
Автор

Hi Steve, Thank you🌹🌹. It was very cool. Please make more videos like this. Good luck.🙏🙏

mohammadjavadaghazadehfard
Автор

Nice video, nicely edited. Thanks for sharing!

greob
Автор

Just found accidentally your channel and based on the number of likes, I think you are way underestimated. Awesome videos, new subscriber here.

ricardoestrella
Автор

I am new in this channel and this video is really nice thanks :)

Автор

It's good to remember that maps are not JSON.stringified by default...
Also, the order of keys is the insertion order (so it's good for stuff like LRU cache)

just_ppe
Автор

Man your video came at the perfect moment!

LePhenixGD
Автор

Pretty Impressed by the content you make. Have a lot to learn, know and implement from your videos. Keep posting best practices. Tried to connect over LinkedIn too but asking email.

abhishekchary
Автор

An awesome explanation and presentation

sck
Автор

What I took away from it: Objects should be used to describe actual things (ie. real life objects, hence oop), maps are used as a collection of things where you need more functionality than an array

codesymphony
Автор

thank you, thank you, thank you 🙏 for such a content

mo_still_alive
Автор

Never thought I could learn that much in 10min

Felipekimst