Weird performance gotchyas in JavaScript

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Randomly got shown this, very interesting, but I would have preferred a Short that explains one scenario

GrandomamaBulletto
Автор

"Is JavaScript kind of messed up?" Yes!!!

Cyber-Talks
Автор

I often think that a small sacrifice is needed for readbility, but I never meant selling your two kidneys for it!!

antoniong
Автор

My dude, the text says that === is faster but then you say == is faster

EvilTim
Автор

Not saying these things don't make sense when you understand the reasons, but it won't convince me these are features and not bugs..

LoadOfJak
Автор

If your code is sensitive in terms of performance, don't use JS. Use js when you can permit yourself the wiggle room.

nicolassabio
Автор

I didn’t start to wonder if JavaScript was messed up. I knew it all along.

freeottis
Автор

Why do I even need to understand what is happening under the hood for a "a+b" vs a "b+a"

gareer
Автор

One day we'll have DOM APIs in WASM and we can start afresh 😉

ShortFilmVD
Автор

it's the other way around for triple vs double equals.. they use the same algorythm except double equals does type coersion if the types dont match, which is of course extra work

TheGreyMotion
Автор

You can have my kidney, give me 10 seasons of this

kasper
Автор

There is no way I'm finding the full video in your channel.

ngochunglongnguyen
Автор

one day we'll get an actual replacement for js, because its about time lmao

whamer
Автор

Also it makes sense that your car keeps breaking down when you ifind out that under the hood the parts of made of plastic and not aluminum or steel. That doesn't make the crapiness of your car okay.

davea
Автор

=== are actually faster and provides better performance than ==

what's the instructors is trying to proof here?

harvindersingh
Автор

I guess first one is due to type conversion possibility with double equals.

sidbits
Автор

Sure get rid of all your strict equalities for a nano second improvement in performance and find out.

faster_than_bugs
Автор

And they make an entire framework to make the worst experience in a page

Necessarius
Автор

Optimizing JavaScript is like taking the shell off a snail so it goes faster, it'll just be sluggish. Just accept its slow, or imbed something faster for what you need performance for. 🥴

davidramziz
Автор

I don't think its JS fault. The fault is from the browsers that decide to have support for different features; js has to work overtime to be compatible on so many fking platforms!

jwstinthesky
join shbcf.ru