I thought this will be pointless, like most things in JS, but it actually does make some sense
@nodlacКүн бұрын
Thanks! I've been watching primagen's game development videos and had the insane desire to start learning vim by building an ASCII game for my kids. This video was a perfect kick start to the project.
@tomontheinternetКүн бұрын
Good luck!!
@DanielMarin-tutorials2 күн бұрын
Really cool! I like to know this :D
@TheillegalPrime3 күн бұрын
Good video nice job bro
@hglbrg4 күн бұрын
DILF is also a compliment to middle aged men! dootodoo!
@simplenow4 күн бұрын
유튜브 로고가 한글 같네요 텀
@tomontheinternet4 күн бұрын
ㅋㅋㅋ.
@JonathanEugenioSandovalMarquez6 күн бұрын
Font Name?
@tomontheinternet5 күн бұрын
IBM plex mono!
@jmg95097 күн бұрын
What was that ending?
@kusuma8658 күн бұрын
Doing God's work, loved the explanation and how simple it was to understand
@VioletJewel172911 күн бұрын
literally can't see your keystrokes on the keyboard taking up 1/4 of your screen.
@tomontheinternet9 күн бұрын
Yup. I whiffed it.
@brunoromaszkiewicz48613 күн бұрын
10/10 ending absolute nonsense
@gabrielruffo643913 күн бұрын
What happens if the server returning the body goes down while providing the response body byte by byte?
@icollided18 күн бұрын
I like \033[31m because it makes it spooky red.
@jayvuillermin141419 күн бұрын
This is awesome mate!
@ShaunakDe20 күн бұрын
Thanks for the amazing and informative video. Makes me want to explore everything that comes like lazy more!
@briginas21 күн бұрын
Tom, could you share your vim config? :)
@RioChandra21 күн бұрын
amazing, simple and easy to understand about stream
@FauzulChowdhury21 күн бұрын
Beautiful!
@grgrsm22 күн бұрын
probably because response is just connection response without data. Then you need to wait again while data is being streaming in binary, and then it does the parse. ok, boring. I wrote the guess after watching 30 sec, and yeah, that what it is.
@RusuTraianCristian25 күн бұрын
The browser and server already do the heavy lifting of streaming and parsing the big piece of data in small chunks, incrementally (thus the 'streaming'). So in the frontend, all you need to do is create a 'for of' loop (because it can 'await' things) and build a string/content with the coming data. I've been doing this for years because I have many circumstances where we had to display things as they come in, rather than waiting for the whole thing to process and then BANG, fill up the screen. It's a nice, informative/educational piece of video nonetheless. Well done!
@volbla26 күн бұрын
Fetch only resolves the header? So the Response is not a response. It's more like a handshake.
@LeelaVenkataSaiSumanthEl-ss4wo26 күн бұрын
make a JavaScript playlist
@MaisUmSomente28 күн бұрын
Use then, and no need of second await.
@AnasImloul28 күн бұрын
In HTTP, we have a Content-Length header that indicates the number of bytes in the response body. Given that the await in the first fetch operation retrieves only the headers, does this imply that the Content-Length header cannot be set correctly before the entire body is streamed?
@AnasImloul28 күн бұрын
Shouldn't the Content-Length header be specified by the server before it begins streaming the response? In your use case, you used res.end() to signal the end of the response body, which means that until res.end() is called, there’s no way to determine the Content-Length value.
@memaimu28 күн бұрын
Now can you do this during a technical interview.
@mkrzyzowski29 күн бұрын
This is first explanation which make me understand that. Thank you!
@mkrzyzowski29 күн бұрын
Maybe wrap it into fatchJson with one visible await
@victorlongon29 күн бұрын
Such a nice video. Very beautiful style and clear explanation! ❤
@itzkxhu29 күн бұрын
help me i am alive
@cherubin7th29 күн бұрын
Lifting one of the greatest mysteries ever.
@ayoubalfurjani4531Ай бұрын
I like the simple explanation and the overall vibes.
@theguy5423Ай бұрын
Should I await before I subscribe?
@saravanasai2391Ай бұрын
Hey, that is a great explanation. I understood that the complete response body is waiting to get a transfer, but I was wondering when the response body converted into valid JSON. I know that conversion takes sometime incase of a huge pay load.
@rishidubey8745Ай бұрын
RegSys you gotta pay for this !!!
@tomontheinternetАй бұрын
Pls help
@fourone1254Ай бұрын
@@tomontheinternetdude are you okay?
@tomontheinternetАй бұрын
Yeah. Just being silly.
@CarutsuАй бұрын
fetch() is poorly named
@MelroyvandenBergАй бұрын
You don't see too happy about Regsys..? With 51% of your youtube channel. What did you do??
@MelroyvandenBergАй бұрын
Let's try to bring this into production, it's so fast ;P
@dsindun7224Ай бұрын
maybe can explain it better from tcp perscpective
@dannyisraelАй бұрын
Ooooh, it’s an ad slot
@MelroyvandenBergАй бұрын
the video at the end is cut by those cyber bots
@dhruvsaxena8254Ай бұрын
never saw anyone get so sad with being sponsored, blink twice bro if you need help.
@tomontheinternetАй бұрын
😆
@samiullahsheikh501527 күн бұрын
😂
@gluester5525 күн бұрын
@@tomontheinternet wear red in the next video if you don't like regsys
@sean.velascoАй бұрын
this may be framework-specific, but can you return an un-awaited response.json()?
@samarthnagar2939Ай бұрын
You using deno 2.0
@tomontheinternetАй бұрын
I’ve tried it out a bit. I like that it has a standard lib. I’d use it for personal projects, but it’s not popular enough that I’d use it in my day job
@BertAframionАй бұрын
Very interesting stuff and I never thought about it, but it seems to be pretty easy to modify the prompts. Thanks for looking at the stuff! :) However, I do not get the sponsored part. What does it mean? Is it a joke, will the content of the channel change? Are you enslaved now? What does it mean?
@MelroyvandenBergАй бұрын
I genuinely think he needs help.. 51% take over that doesn't sound good
@PawelFijalАй бұрын
Hey man, love ur vids. Thanks. Tho that regsys part sounded kinda sad
@MelroyvandenBergАй бұрын
Yea what is it with regsys? That doesn't sound healthy.. 51% ownership? what happened?
@firdavs.ibodullayevАй бұрын
interesting
@dazealexАй бұрын
Nice stuff! Ofcourse, as a Go programmer, I don't deal nor look too deep into JS, this was still useful and nicely illustrated. Give us more!
@TwiddliАй бұрын
Great video, thanks! Side question, can you tell me what font are you using it look really well spaced and clear to read, thanks :)