You Don't Know Node - ForwardJS San Francisco

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024
  • "Before you bury yourself in packages, learn the NodeJS runtime itself. This talk will challenge the very limits of your NodeJS knowledge,"
    Samer Buna
    Presented at ForwardJS, July 26 & 27, 2017

ความคิดเห็น • 38

  • @manishregmi4801
    @manishregmi4801 5 ปีที่แล้ว +28

    Before the video began: WTF do you mean I don't know nodejs ... 5 minutes after watch the video... holy crap I did not know nodejs ..

  • @rafaelveggi
    @rafaelveggi 4 ปีที่แล้ว +8

    I'm only 11min in but I'm safe to say this is the best ES talk I've watched so far. Big thanks for sharing

  • @It7Is7Charlie
    @It7Is7Charlie 6 ปีที่แล้ว +29

    seriously, genius talk. Dude, you are awesome!

  • @SamuelKarani
    @SamuelKarani 4 ปีที่แล้ว +5

    Me "I'm kind of a node expert" Samer "Hold my beer!"

  • @georgebenjamin6632
    @georgebenjamin6632 3 ปีที่แล้ว +3

    I knew the answers to about 70% of these questions, I'm so proud of myself!

  • @mohsenkhashei5472
    @mohsenkhashei5472 ปีที่แล้ว

    Thanks to Samer Buna

  • @AkshayAradhya
    @AkshayAradhya 6 ปีที่แล้ว +5

    Loving this talk... Watched it till 12:24.
    Will come back and watch the whole thing

  • @alibarznji2000
    @alibarznji2000 4 ปีที่แล้ว +2

    this guy is a genius,
    I took his course on plural sight and it was awesome

    • @namanjindal3089
      @namanjindal3089 ปีที่แล้ว

      please share the course name

    • @alibarznji2000
      @alibarznji2000 ปีที่แล้ว

      @@namanjindal3089 Nodejs by Samir Buna,
      It was quite a while ago, so I don't remember much

  • @nishantsabharwal13
    @nishantsabharwal13 5 ปีที่แล้ว +3

    Brilliant Talk. I really didn't know node :D

  • @sanjayshr1921
    @sanjayshr1921 5 ปีที่แล้ว +3

    8:08 export is an object reference for the module.

  • @ericaskari
    @ericaskari 4 ปีที่แล้ว

    One of the BEST EVER, thank you

  • @ivanslepchenko9785
    @ivanslepchenko9785 ปีที่แล้ว

    This is just super cool. Thanks!

  • @amitgujar6231
    @amitgujar6231 ปีที่แล้ว

    superb video i ever watched

  • @Julius-fd2sd
    @Julius-fd2sd 5 ปีที่แล้ว +1

    Very good and helpful talk! Thank you!

  • @piano9446
    @piano9446 3 ปีที่แล้ว

    YES, that's a really good presentation!

  • @saifaligour7957
    @saifaligour7957 2 ปีที่แล้ว

    Very good talk

  • @shaikhanuman8012
    @shaikhanuman8012 2 ปีที่แล้ว

    Clear explanation TQ very much

  • @iamworstgamer
    @iamworstgamer 3 ปีที่แล้ว

    this guy is genius .

  • @Rmargve
    @Rmargve 5 ปีที่แล้ว +1

    Kudos man, good talk

  • @GeordyJames
    @GeordyJames 5 ปีที่แล้ว

    Best tips ever. Thanks

  • @leminhdung1981
    @leminhdung1981 2 ปีที่แล้ว

    Amazing guy! :)

  • @localghost3000
    @localghost3000 5 ปีที่แล้ว +2

    The speaker said that when the call stack and event queue are both empty, the node process exits. In case of http servers created using node, how exactly is the server is kept alive when we don't have any incoming requests at a given point of time?

    • @mugs4439
      @mugs4439 4 ปีที่แล้ว +2

      Qais Makani as he stated immediately after... you set a process to keep it alive

    • @NxMOHAMAD
      @NxMOHAMAD 4 ปีที่แล้ว +2

      because it's not the requests that's keeping the process alive, it's the listening to the port that does.

    • @dapobelieve
      @dapobelieve 4 ปีที่แล้ว +4

      The process of listening keeps the application alive

    • @travisreacher704
      @travisreacher704 3 ปีที่แล้ว

      Idle

  • @lwouisYT
    @lwouisYT 5 ปีที่แล้ว

    Comparing spawn and exec and saying spawn is better because you get a stream instead of a buffer. What is a stream if not a buffer? These are all shared memory were one program is writting info to be consumed by the other. Piping in a shell uses buffers

    • @kavan1773
      @kavan1773 4 ปีที่แล้ว +1

      While I don't know the answer for sure as I'm still learning Node myself I would have to guess that the difference is something like this: a Stream uses a fixed size buffer and continuously writes data to it, flushes, and then writes more data. A Buffer can be arbitrarily large and attempt to read all or as much of the data at once. So if you're reading 2GB of data total, using Streams will use very little memory to complete the full read operation by reading it in chunks of a fixed amount. However, with Buffers you may end up creating a Buffer of 2GB which is too much memory to hand over to a program that is simply reading data.

    • @lwouisYT
      @lwouisYT 3 ปีที่แล้ว

      @@kavan1773 buffer/stream are real world analogies to give a vibrant picture. They both refer to the same technique of allocating memory, and writing to it in batches, instead of fully allocating everything. As i said piping in a shell uses buffers. A webserver uses buffers. A streaming server like Kafka uses buffer. Anything networking does. You can call it streaming and it's equally valid. Video streaming is using buffer. It's sometimes tells you it's buffering for instance. It's one and the same

  • @Steve-Richter
    @Steve-Richter 4 ปีที่แล้ว

    Does node run on multiple threads? I guess reading a file can run on a thread. But how would node know it can safely run two different user functions in separate threads?

    • @NxMOHAMAD
      @NxMOHAMAD 4 ปีที่แล้ว

      by default it is single-threaded. there are ways for you to make it multi-threaded.

    • @travisreacher704
      @travisreacher704 3 ปีที่แล้ว

      Ask your neighbor

  • @salehsoleimani
    @salehsoleimani 5 ปีที่แล้ว

    perfect

  • @huirenchuah3597
    @huirenchuah3597 3 ปีที่แล้ว

    10/10

  • @kavan1773
    @kavan1773 4 ปีที่แล้ว +1

    The more I learn about Node the more I start moving towards golang

  • @amans6504
    @amans6504 3 ปีที่แล้ว

    omg so now i understood why we do server.listen,