node http is beautiful
Vložit
- čas přidán 14. 06. 2024
- We are always in a rush to build apps that we rarely stop and think about how things work. Today id like to go to the basics and pick apart the HTTP module on NodeJS
Become a member and watch the extended version of this content here • node http is beautiful... Alongside over 60 exclusive members-only content • Members-only videos
Chapters
0:00 Intro
2:00 Connection Event
3:00 Connect from Curl
6:00 Connect From Browser
6:50 Connect From Telnet
8:00 Request Event
13:00 List All Connections
Code
github.com/hnasr/javascript_p...
http module nodejs help
nodejs.org/api/http.html#http...
Become a Member on CZcams
/ @hnasr
🔥 Members Only Content
• Members-only videos
Support my work on PayPal
bit.ly/33ENps4
🧑🏫 Courses I Teach
husseinnasser.com/courses
🏭 Backend Engineering Videos in Order
backend.husseinnasser.com
💾 Database Engineering Videos
• Database Engineering
🎙️Listen to the Backend Engineering Podcast
husseinnasser.com/podcast
Gears and tools used on the Channel (affiliates)
🖼️ Slides and Thumbnail Design
Canva
partner.canva.com/c/2766475/6...
🎙️ Mic Gear
Shure SM7B Cardioid Dynamic Microphone
amzn.to/3o1NiBi
Cloudlifter
amzn.to/2RAeyLo
XLR cables
amzn.to/3tvMJRu
Focusrite Audio Interface
amzn.to/3f2vjGY
📷 Camera Gear
Canon M50 Mark II
amzn.to/3o2ed0c
Micro HDMI to HDMI
amzn.to/3uwCxK3
Video capture card
amzn.to/3f34pyD
AC Wall for constant power
amzn.to/3eueoxP
Stay Awesome,
Hussein - Věda a technologie
i love this kind of content, it's like having a cool older cousin of yours explaining stuff to you
Basics like this are often ignored! Thanks for the amazing content!!!
I know nothing of the NodeJS but boy have i learned something today...
I have been working with Node for about 3 years now and I have always used express. This video is all I needed to explore how all these functionalities have been abstracted from the actual core packages of Node. Thank you!
Bro the way you explain concepts makes me fall in love with technology, specifically backend tech. Throughout time I lost that passion I once had, and did it only just as a career. But I want to bring the same old passion back. Which you are helping me.
1:22
He's the one teaching yet says "you probably know this better than I do.". Nasser knows his audience. We have spent years with little idea of how little we knew.
Thank you Hussein. Keep up with this kind of Basic content, love it!
I started to learn node.js a few days back and this video drops in. Thanks man!
All by design. Life is synchronicity.
What an awesome video with very good explanations and under the hood researching, great job!
It brings more clarity about what I'm doing, i like these sessions..
Everyone has their unique way of teaching, so we get to learn new perspectives and gain deeper insights.
This is awesome. I started with Node through Express, then Fastify. Never really dived into this part
This is such a good explanation of this simple concept. Thanks for the amazing video. And please do make a video on express also.
I'm completely new to node and to this channel, but after watching this video in its entirety, it seems like this guy needs to be putting out a node.js/express.js course, or maybe he has one already. He knows his stuff, and is very easy to understand.
Awesome man, I doesn't know those details about Node.js. Now go deep down to understand how these things works under the hood
Great video which shows in practice what happens under the hood. Keep it up Hussein!
never touched express or similar
I do like how intuitive the built in modules can be
quality content, please keep this coming.
Deno's core built-in listen and HTTP API is even more beautiful. It doesn't rely on callback-pattern, which can become very unwieldy if you haven't introduced a strategy to handle it early on in development but rather uses async iterators for iterating and gives you much more control over the control flow of your connection handlers.
But I'd still want to use something a bit more high-level that allows me to define routes and handlers outside a loop and automatically filter and orchestrate requests based on pre-conditions. Working with a low-level API for application code is not feasible. They are great as building blocks for higher level concepts, though.
This is a joy to watch
Best video. Please keep doing stuff like this
Niceeeee
Really missed those simple yet very insightful videos
B.t.w - ate you using brave as your browser on your mac?
Do you recommend? (Currently using chrome for the dev tools etc but I really want to switch for the sake of diversity)
Love this type of content. Looking forward to see about QUIC as it's built in nodejs as well
Awesome thank you sir ❤️☺️
dope video, great job, keep it up!
akka-http has even more beautiful design. Atop of that, it has beautful routing declaration API. It is also type safe, which allows usage without reading any documentation.
AMAZING CONTENT!
How does it decide to make a new connection ? Does it depend on minimum time limit between requests ?
I unironically make my backends with the http module. writing a stable login and signup system for instance only takes like half an hour if you have the experience
I never knew how to use break points until today lol
how does vs code debugger open when you run curl in the terminal
If client connects through different browser tabs,
Will client ports be different ?
Great stuff
What advantages does Brave have over the other browser?
Thanks
Every time I look it up, basically no one thinks I should learn the HTTP module, and almost always say use express. I don’t really understand why many discourage just using HTTP. Can anyone clarify why this is?
It is indeed beautiful, the explanation, I mean. haha
Cool stuff
You talk to curl like to a dog: "Look at you! Good Job!" :D
Good boy! 😂
I have built this dark mode in node docs :)
nice!
Why was connection.remotePort not 8080?
How could an HTTP server serve a TCP request shown using telnet?
Because HTTP 1 and 2 are built upon TCP.
Nobody:
Fathers at Texas after the new law: 6:02
I was today years old when I learnt about vscode debug mode. 🤣🤣
I was frustrated few weeks back coz I just knew that built-in node modules, like http is not supported in react-native.
My project was suppose to call https backend with certificate authentication.
I ended up binding native java code into react-native in order to do such simple task.
x 1.25 is the perfect playback speed for this video
I'm a goose
Port ATAT... from StarWars??? Yeah, I just figured it out.
wait until u try golang s http package
First comment haha 👋
You sound a little drunk .. XD
It's 2021 and this video is still teaching creating a new project using antiquated *"require"* statements instead of the standard *"import"* statements. The JS module ecosystem is a depressing mess because of obsolete stuff like this.
0:19 You said "so what I wanna do today is" twice
you should go work for the cia
@@felleg4737 😂
No, it's not. It's really really really not. For a tiny project (
lol, dude chill out.
@@calimio6 make a point or leave