Тёмный
No video :(

You Should Use Maps and Sets in JS 

Syntax
Подписаться 361 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

24 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@syntaxfm
@syntaxfm 5 месяцев назад
Listen to Syntax episode 689: syntax.fm/show/689/you-should-be-using-javascript-maps-and-sets Are you using Maps and Sets in your code? Let us know! 👇
@benvinegar
@benvinegar 5 месяцев назад
Years of muscle memory have made it hard to not use Objects all the time, so this was a helpful illustration of why I should use Map and Set more often. Thanks CJ.
@Dedseq
@Dedseq 5 месяцев назад
precisely my thoughts
@TheOllieJT
@TheOllieJT 5 месяцев назад
Must be daunting to join Syntax after such a long time of just Scot & Wes... you're doing a great job, CJ!
@CodingGarden
@CodingGarden 5 месяцев назад
Thank you 🙏 - It's a big role to fill but the team is super collaborative, encouraging and allowing me to do some of my best work.
@gosnooky
@gosnooky 5 месяцев назад
One of the unfortunate things about the Set implementation in JS is that it can only match primitives and memory addresses to compute equality. So even if you have two objects with the exact same fields and values, they will still not be equal because each has a non-unique memory address. Just something to be aware of if you're coming from a language like Java where you can override the 'equals' method on any object to govern how equality is computed.
@coltonaallen
@coltonaallen 5 месяцев назад
Great vid, CJ! Welcome to The Syntax team! My literal 3 favorite devs now in one place! Couldn't ask for any meter trio!
@studiousllama4776
@studiousllama4776 5 месяцев назад
This was awesome! Loving the deep dive and hoping for more videos like it
@syntaxfm
@syntaxfm 5 месяцев назад
More coming 🔜
@pranjalagnihotri6072
@pranjalagnihotri6072 5 месяцев назад
Hey CJ, please make a video on using different design patterns in JavaScript and where to use them 😊
@CodingGarden
@CodingGarden 5 месяцев назад
This is a good topic! I'll put it on the list.
@___dh__dh__
@___dh__dh__ 3 месяца назад
It would be interesting to know scenarios where set/map doesn't actually make sense and objects might be better.
@jagonza2000
@jagonza2000 5 месяцев назад
Great video CJ!
@btrsl
@btrsl 5 месяцев назад
Yesss! This is what we want 🎉🎉
@CodingGarden
@CodingGarden 5 месяцев назад
😄
@Pra2wins
@Pra2wins 5 месяцев назад
CJ ❤
@Souljacker7
@Souljacker7 4 месяца назад
Any of you guys know what extension is that that shows the result in the side?
@syntaxfm
@syntaxfm 3 месяца назад
It is called Quokkajs - quokkajs.com/
@jonathonbloomfield8991
@jonathonbloomfield8991 5 месяцев назад
Thank you for this video! Would you mind sharing how you're displaying logs and return values inline in your code editor please?
@Mike-vq3yt
@Mike-vq3yt 5 месяцев назад
Quokka.js maybe?
@CodingGarden
@CodingGarden 5 месяцев назад
Using quokka.js there is also an extension called TypeScript worksheet that I haven't tried yet.
@prashlovessamosa
@prashlovessamosa 5 месяцев назад
👍 CJ
@jofftiquez
@jofftiquez 5 месяцев назад
May I know what plugin does that automatic logging on the end of your `console.log()`? Thanks
@syntaxfm
@syntaxfm 5 месяцев назад
It is called quokka.js There is also a plugin called TypeScript Worksheet that is similar, but I have not tried it.
@user-xr3hf2ps6p
@user-xr3hf2ps6p 4 месяца назад
May I know what color theme you have on vs code?
@syntaxfm
@syntaxfm 4 месяца назад
You can see the theme I use here: github.com/codinggarden/vscode-settings?tab=readme-ov-file#themescolor -CJ
@user-xr3hf2ps6p
@user-xr3hf2ps6p 4 месяца назад
@@syntaxfm ☺️thank you very much
@BartekKozera
@BartekKozera Месяц назад
Hot take: The "problems" with using objects are not real problems and they never come up in real life scenarios so it's not worth sacrifising the nice syntax of object for the verbosity of using Map.
@syntaxfm
@syntaxfm Месяц назад
It's one of those "use it when you have those problems " kinda thing. Not that they should replace objects in your day to day.
@good_eats876
@good_eats876 5 месяцев назад
js is so quirky, it’s insane
@lautarodapin
@lautarodapin 5 месяцев назад
the lesson is, use typescript
Далее
STOP Using Classes In JavaScript | Prime Reacts
14:02
Просмотров 233 тыс.
УГАДАЙ ЕДУ ПО ЭМОДЗИ! #shorts
00:57
Просмотров 156 тыс.
Enums considered harmful
9:23
Просмотров 203 тыс.
Set up a Mac in 2024 for Power Users and Developers
1:00:34
The Most Important Skill You Never Learned
34:56
Просмотров 194 тыс.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
The Ultimate Guide to JavaScript Collections
24:52
Просмотров 2,8 тыс.
Hands On Docker Examples for Developers
49:35
Просмотров 11 тыс.
Only The Best Developers Understand How This Works
18:32
УГАДАЙ ЕДУ ПО ЭМОДЗИ! #shorts
00:57
Просмотров 156 тыс.