Actual use case for JavaScript PROXY!

Actual use case for JavaScript PROXY!

Kevin Ghadyani - JavaScript

2 года назад

11,050 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

风清扬
风清扬 - 16.10.2023 14:00

Great Vedio, very helpful

Ответить
قيادة الكمبيوتر
قيادة الكمبيوتر - 08.08.2023 01:43

Awesome video Kevin! It is a very helpful use-case. Thank you so much for this

Ответить
Maciej Grycz
Maciej Grycz - 03.08.2023 14:56

Can I ask what font do you use in the video?

Ответить
Injamul Islam
Injamul Islam - 15.06.2023 21:54

Why we can't do something like

const FontSize = {
.......
tiny: tiny,
get extraSmall() {
console.warn('warning...')
return this.tiny
}
.......
}

Ответить
L borate
L borate - 21.04.2023 05:47

You can literally just set the forntsizes extralarge to the new translation. The proxy isnt doing anything magical.

FontSizes.ExtraLarge.Value
When you have to update your code for depricated values you can just set the value from the object. What is it that a proxy can do that cant be done in a simple return value or if then statements?

Ответить
Collins Munachi
Collins Munachi - 15.04.2023 16:59

This is super helpful, thank you

Ответить
William Rågstad
William Rågstad - 14.11.2021 14:53

Amazing video, you just earned yourself a new subscriber!

Ответить
TomDoesTech
TomDoesTech - 23.09.2021 04:11

Great video! I've found of a use-case for proxies before, but this seems really useful.

Ответить