NEW Way To Create Variables In JavaScript

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


🌎 Find Me Here:

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

I can see you anxiously rushing through to complete the video within the time 😂

DarkOceanShark
Автор

JS just got RAII, welcome to the party

twiksify
Автор

This is such a great use case for symbols. They demonstrate how we can extend the language in a way that doesn't requiring classes.

DillonRedding
Автор

WOW, this is cool. This is similar to C++ class destructor function.

iiilllii
Автор

honestly just introduce a defer keyword and have it work similarly to how go does

pouris
Автор

Yeah, the same as the "with" keyword in Python or the "try ()" syntax in Java.

FacuA
Автор

Kyle "The Dream Boat" never fails to amaze me. Thanks for the tip.

siberiokhovonick
Автор

What benefits does using .open() bring? I never did it and called .readFile() or .writeFile() directly...

xefyr
Автор

0:12 Is that a Windows thing, being unable to delete a file that some process has open?

This is a JavaScript limitation, that objects are not immediately disposed when they go out of scope. Python, for example, doesn’t have this problem (at least not as bad).

lawrencedoliveiro
Автор

perl scope closes any handles, like file, stream, session

vilijanac
Автор

Can you make a tutorial for Vitest unit testing or thunk/slice

scottstot
Автор

Yeah but.. if you don’t remember to file.close() before, what makes you think someone is gonna remember to make a dispose function that calls it?

dferg
Автор

Link on description no longer clickable. Nice one yt

Автор

Surprised he did not add react hooks lol

LarsRyeJeppesen
Автор

The link to the full video in the description does not work

GreenZapperZ
Автор

Doesn’t feel intuitive for everyday use, but a nice cleanup callback that can live under an interface.

squdge
Автор

Isn't there something similar in Python?

naudos
Автор

Hmmm :))
What if I...


using file = ...
return file

Will it stay forever?

anafro_ru
Автор

this seems to be a more server-side feature to me.

nghiaminh
Автор

a try with resources in my old Java world 😊

misigarodev