How I Code in 2024
11:00
5 ай бұрын
Ugly user model
4:08
Жыл бұрын
Hunt down changes with git log
4:25
I like bad code
7:58
2 жыл бұрын
Пікірлер
@aviee2046
@aviee2046 Күн бұрын
I thought this will be pointless, like most things in JS, but it actually does make some sense
@nodlac
@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
@tomontheinternet Күн бұрын
Good luck!!
@DanielMarin-tutorials
@DanielMarin-tutorials 2 күн бұрын
Really cool! I like to know this :D
@TheillegalPrime
@TheillegalPrime 3 күн бұрын
Good video nice job bro
@hglbrg
@hglbrg 4 күн бұрын
DILF is also a compliment to middle aged men! dootodoo!
@simplenow
@simplenow 4 күн бұрын
유튜브 로고가 한글 같네요 텀
@tomontheinternet
@tomontheinternet 4 күн бұрын
ㅋㅋㅋ.
@JonathanEugenioSandovalMarquez
@JonathanEugenioSandovalMarquez 6 күн бұрын
Font Name?
@tomontheinternet
@tomontheinternet 5 күн бұрын
IBM plex mono!
@jmg9509
@jmg9509 7 күн бұрын
What was that ending?
@kusuma865
@kusuma865 8 күн бұрын
Doing God's work, loved the explanation and how simple it was to understand
@VioletJewel1729
@VioletJewel1729 11 күн бұрын
literally can't see your keystrokes on the keyboard taking up 1/4 of your screen.
@tomontheinternet
@tomontheinternet 9 күн бұрын
Yup. I whiffed it.
@brunoromaszkiewicz486
@brunoromaszkiewicz486 13 күн бұрын
10/10 ending absolute nonsense
@gabrielruffo6439
@gabrielruffo6439 13 күн бұрын
What happens if the server returning the body goes down while providing the response body byte by byte?
@icollided
@icollided 18 күн бұрын
I like \033[31m because it makes it spooky red.
@jayvuillermin1414
@jayvuillermin1414 19 күн бұрын
This is awesome mate!
@ShaunakDe
@ShaunakDe 20 күн бұрын
Thanks for the amazing and informative video. Makes me want to explore everything that comes like lazy more!
@briginas
@briginas 21 күн бұрын
Tom, could you share your vim config? :)
@RioChandra
@RioChandra 21 күн бұрын
amazing, simple and easy to understand about stream
@FauzulChowdhury
@FauzulChowdhury 21 күн бұрын
Beautiful!
@grgrsm
@grgrsm 22 күн бұрын
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.
@RusuTraianCristian
@RusuTraianCristian 25 күн бұрын
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!
@volbla
@volbla 26 күн бұрын
Fetch only resolves the header? So the Response is not a response. It's more like a handshake.
@LeelaVenkataSaiSumanthEl-ss4wo
@LeelaVenkataSaiSumanthEl-ss4wo 26 күн бұрын
make a JavaScript playlist
@MaisUmSomente
@MaisUmSomente 28 күн бұрын
Use then, and no need of second await.
@AnasImloul
@AnasImloul 28 күн бұрын
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?
@AnasImloul
@AnasImloul 28 күн бұрын
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.
@memaimu
@memaimu 28 күн бұрын
Now can you do this during a technical interview.
@mkrzyzowski
@mkrzyzowski 29 күн бұрын
This is first explanation which make me understand that. Thank you!
@mkrzyzowski
@mkrzyzowski 29 күн бұрын
Maybe wrap it into fatchJson with one visible await
@victorlongon
@victorlongon 29 күн бұрын
Such a nice video. Very beautiful style and clear explanation! ❤
@itzkxhu
@itzkxhu 29 күн бұрын
help me i am alive
@cherubin7th
@cherubin7th 29 күн бұрын
Lifting one of the greatest mysteries ever.
@ayoubalfurjani4531
@ayoubalfurjani4531 Ай бұрын
I like the simple explanation and the overall vibes.
@theguy5423
@theguy5423 Ай бұрын
Should I await before I subscribe?
@saravanasai2391
@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
@rishidubey8745 Ай бұрын
RegSys you gotta pay for this !!!
@tomontheinternet
@tomontheinternet Ай бұрын
Pls help
@fourone1254
@fourone1254 Ай бұрын
@@tomontheinternetdude are you okay?
@tomontheinternet
@tomontheinternet Ай бұрын
Yeah. Just being silly.
@Carutsu
@Carutsu Ай бұрын
fetch() is poorly named
@MelroyvandenBerg
@MelroyvandenBerg Ай бұрын
You don't see too happy about Regsys..? With 51% of your youtube channel. What did you do??
@MelroyvandenBerg
@MelroyvandenBerg Ай бұрын
Let's try to bring this into production, it's so fast ;P
@dsindun7224
@dsindun7224 Ай бұрын
maybe can explain it better from tcp perscpective
@dannyisrael
@dannyisrael Ай бұрын
Ooooh, it’s an ad slot
@MelroyvandenBerg
@MelroyvandenBerg Ай бұрын
the video at the end is cut by those cyber bots
@dhruvsaxena8254
@dhruvsaxena8254 Ай бұрын
never saw anyone get so sad with being sponsored, blink twice bro if you need help.
@tomontheinternet
@tomontheinternet Ай бұрын
😆
@samiullahsheikh5015
@samiullahsheikh5015 27 күн бұрын
😂
@gluester55
@gluester55 25 күн бұрын
@@tomontheinternet wear red in the next video if you don't like regsys
@sean.velasco
@sean.velasco Ай бұрын
this may be framework-specific, but can you return an un-awaited response.json()?
@samarthnagar2939
@samarthnagar2939 Ай бұрын
You using deno 2.0
@tomontheinternet
@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
@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
@MelroyvandenBerg Ай бұрын
I genuinely think he needs help.. 51% take over that doesn't sound good
@PawelFijal
@PawelFijal Ай бұрын
Hey man, love ur vids. Thanks. Tho that regsys part sounded kinda sad
@MelroyvandenBerg
@MelroyvandenBerg Ай бұрын
Yea what is it with regsys? That doesn't sound healthy.. 51% ownership? what happened?
@firdavs.ibodullayev
@firdavs.ibodullayev Ай бұрын
interesting
@dazealex
@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
@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 :)
@tomontheinternet
@tomontheinternet Ай бұрын
IBM plex mono!
@Twiddli
@Twiddli Ай бұрын
@@tomontheinternet thanks!
@oguz-kagan
@oguz-kagan Ай бұрын
Very interesting
@arifulhaque3236
@arifulhaque3236 Ай бұрын
Great presentation