node http is beautiful

Sdílet
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

Komentáře • 63

  • @atraps7882
    @atraps7882 Před 2 lety +124

    i love this kind of content, it's like having a cool older cousin of yours explaining stuff to you

  • @jithin_zac
    @jithin_zac Před 2 lety +61

    Basics like this are often ignored! Thanks for the amazing content!!!

    • @Flankymanga
      @Flankymanga Před 2 lety +1

      I know nothing of the NodeJS but boy have i learned something today...

  • @the_xibalba
    @the_xibalba Před 2 lety +15

    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!

  • @awrjkf
    @awrjkf Před 2 lety +19

    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.

  • @shiewhun1772
    @shiewhun1772 Před 2 lety +1

    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.

  • @paroxyzm21
    @paroxyzm21 Před 2 lety +3

    Thank you Hussein. Keep up with this kind of Basic content, love it!

  • @AkshayKumar-kz6zh
    @AkshayKumar-kz6zh Před 2 lety +4

    I started to learn node.js a few days back and this video drops in. Thanks man!

    • @awrjkf
      @awrjkf Před 2 lety +1

      All by design. Life is synchronicity.

  • @georgelinardis
    @georgelinardis Před rokem

    What an awesome video with very good explanations and under the hood researching, great job!

  • @amans6504
    @amans6504 Před 2 lety +1

    It brings more clarity about what I'm doing, i like these sessions..

    • @awrjkf
      @awrjkf Před 2 lety +1

      Everyone has their unique way of teaching, so we get to learn new perspectives and gain deeper insights.

  • @WiredMartian
    @WiredMartian Před 2 lety +4

    This is awesome. I started with Node through Express, then Fastify. Never really dived into this part

  • @siddharth5485
    @siddharth5485 Před 2 lety +1

    This is such a good explanation of this simple concept. Thanks for the amazing video. And please do make a video on express also.

  • @itsnobledean9450
    @itsnobledean9450 Před 7 měsíci

    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.

  • @axaysushir
    @axaysushir Před 2 lety

    Awesome man, I doesn't know those details about Node.js. Now go deep down to understand how these things works under the hood

  • @GreenMarkoulis13
    @GreenMarkoulis13 Před 2 lety +3

    Great video which shows in practice what happens under the hood. Keep it up Hussein!

  • @SamualN
    @SamualN Před 2 lety +1

    never touched express or similar
    I do like how intuitive the built in modules can be

  • @marslogics
    @marslogics Před 2 lety +1

    quality content, please keep this coming.

  • @dealloc
    @dealloc Před 2 lety +1

    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.

  • @hl7297
    @hl7297 Před 2 lety +1

    This is a joy to watch

  • @Anthony-wg7fn
    @Anthony-wg7fn Před 2 lety

    Best video. Please keep doing stuff like this

  • @mtnrabi
    @mtnrabi Před 2 lety +1

    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)

  • @ionelCristianLupu_
    @ionelCristianLupu_ Před 2 lety +3

    Love this type of content. Looking forward to see about QUIC as it's built in nodejs as well

  • @yadneshkhode3091
    @yadneshkhode3091 Před 2 lety +1

    Awesome thank you sir ❤️☺️

  • @MrKyriakos32
    @MrKyriakos32 Před 2 lety +1

    dope video, great job, keep it up!

  • @ZelenoJabko
    @ZelenoJabko Před 2 lety +1

    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.

  • @marcelocch
    @marcelocch Před 2 lety +1

    AMAZING CONTENT!

  • @virajkinik2725
    @virajkinik2725 Před 2 lety +1

    How does it decide to make a new connection ? Does it depend on minimum time limit between requests ?

  • @Oreoezi
    @Oreoezi Před 2 lety

    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

  • @youcannotsaypopandforgetth7609

    I never knew how to use break points until today lol

  • @light-qn2jb
    @light-qn2jb Před 8 měsíci

    how does vs code debugger open when you run curl in the terminal

  • @pranshusharma4642
    @pranshusharma4642 Před 2 lety

    If client connects through different browser tabs,
    Will client ports be different ?

  • @sukoiineamini338
    @sukoiineamini338 Před 2 lety

    Great stuff

  • @dankman7603
    @dankman7603 Před 2 lety

    What advantages does Brave have over the other browser?

  • @jayshah5695
    @jayshah5695 Před 2 lety

    Thanks

  • @jlambert12013
    @jlambert12013 Před 2 lety

    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?

  • @tyrodev5281
    @tyrodev5281 Před 2 lety +1

    It is indeed beautiful, the explanation, I mean. haha

  • @gajendertyagi1042
    @gajendertyagi1042 Před 2 lety

    Cool stuff

  • @real-ludovico
    @real-ludovico Před 2 lety

    You talk to curl like to a dog: "Look at you! Good Job!" :D

    • @hnasr
      @hnasr  Před 2 lety +1

      Good boy! 😂

  • @poshakajay
    @poshakajay Před 2 lety

    I have built this dark mode in node docs :)

  • @Mercio2
    @Mercio2 Před 10 měsíci

    nice!

  • @HarshKapadia
    @HarshKapadia Před 2 lety

    Why was connection.remotePort not 8080?

  • @MohammodnazmuSakiB
    @MohammodnazmuSakiB Před 2 lety +1

    How could an HTTP server serve a TCP request shown using telnet?

    • @onlyjustin4u
      @onlyjustin4u Před 2 lety +1

      Because HTTP 1 and 2 are built upon TCP.

  • @Mr1Horhe
    @Mr1Horhe Před 2 lety

    Nobody:
    Fathers at Texas after the new law: 6:02

  • @codyrap95
    @codyrap95 Před rokem

    I was today years old when I learnt about vscode debug mode. 🤣🤣

  • @dummypg6129
    @dummypg6129 Před 2 lety +1

    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.

  • @GonzaloMassa
    @GonzaloMassa Před 2 lety

    x 1.25 is the perfect playback speed for this video

  • @PrimeGoose
    @PrimeGoose Před 2 lety +3

    I'm a goose

  • @SquaredbyX
    @SquaredbyX Před 2 lety

    Port ATAT... from StarWars??? Yeah, I just figured it out.

  • @mehdiboujid8761
    @mehdiboujid8761 Před 2 lety

    wait until u try golang s http package

  • @youssefwilliam7097
    @youssefwilliam7097 Před 2 lety +2

    First comment haha 👋

  • @VivekYadav-ds8oz
    @VivekYadav-ds8oz Před 2 lety +1

    You sound a little drunk .. XD

  • @DemPilafian
    @DemPilafian Před 2 lety

    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.

  • @avi12
    @avi12 Před 2 lety

    0:19 You said "so what I wanna do today is" twice

    • @felleg4737
      @felleg4737 Před 2 lety +1

      you should go work for the cia

    • @mekinis
      @mekinis Před 2 lety

      @@felleg4737 😂

  • @bruhdabones
    @bruhdabones Před 2 lety +2

    No, it's not. It's really really really not. For a tiny project (

    • @calimio6
      @calimio6 Před 2 lety +2

      lol, dude chill out.

    • @bruhdabones
      @bruhdabones Před 2 lety +1

      @@calimio6 make a point or leave