Async + Await in JavaScript, talk from Wes Bos

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.ค. 2024
  • Flow Control in JavaScript is hard! Native Promises in JavaScript have helped immensely, but the syntax is still a little callback-y. With Async + Await, we can write synchronous looking code without losing any of the benefits of JavaScript's asynchronous nature.
    Wes Bos explores how async + await works, best practices for flow control, and explores several solutions for handling errors.
    Filmed at 2017.dotjs.io on December 1st in Paris.
    You can follow Wes Bos on Twitter: / wesbos
    This talk is under the creative commons license. freeCodeCamp is not associated with this talk. We're just excited to bring more exposure to to it!
    --
    Learn to code for free and get a developer job: www.freecodecamp.com
    Read hundreds of articles on programming: medium.freecodecamp.com

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

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

    what a cool guy doing this talk

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

    Wes Bos is a great speaker, he makes it so simple and explains it so well

  • @andrewoikonomidis8021
    @andrewoikonomidis8021 6 ปีที่แล้ว +13

    Great to have Wes Bos for a talk!

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

    What a beautiful stage. 🌿 Even his slides are aesthetically pleasing.

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

    Great shoutout to Wes Bos for a brilliant and clear explanation

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

    0:33 a sink, a weight

  • @alexnezhynsky9707
    @alexnezhynsky9707 6 ปีที่แล้ว +7

    This is the best async await video to this day, I'm not even exaggerating.

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

    This is exactly what I needed to learn today! Thank you!

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

    Finally, I get it! Thank you, Wes!

  • @mrdeurknopp
    @mrdeurknopp 5 ปีที่แล้ว +8

    One of the best JS teachers

  • @mad1083
    @mad1083 6 ปีที่แล้ว +1

    Loved the express bit. Thanks!

  • @MohamedHamed-oz6nq
    @MohamedHamed-oz6nq 4 ปีที่แล้ว +1

    very amazing talk, i loved it so much. thank you

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

    I still can't get over the fact that some people are laying in audience

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

    Very helpful! Thanks! Loved it! :)

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

    Thanks WesBos, You really are a boss.

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

    Awesome! Very well explained.

  • @barjosa31blogspot83
    @barjosa31blogspot83 6 ปีที่แล้ว

    Thank you! Nice speech!

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

    Thanks a lot wesbos

  • @amineabdellahoui5912
    @amineabdellahoui5912 6 ปีที่แล้ว

    Thanks Wes!

  • @SumitKumar-tw4qe
    @SumitKumar-tw4qe 3 ปีที่แล้ว +10

    Starting this video, I had 70% confidence with async-await; after watching it my confidence is 42.6%

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

      thats because concepts are not clear....watch dev ed callback async await ...for that

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

      @@adarshkotali agreed

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

      One video/lesson will never be able to bring 100% of learners to 100% of comprehension.

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

    thank you brother you helped me a lot

  • @tschleuss
    @tschleuss 6 ปีที่แล้ว

    Very good!

  • @pbdivyesh
    @pbdivyesh 6 ปีที่แล้ว +10

    Wow wesbos yay! I just realized this was almost 4 months back! Damn I've come so far with JS already

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

    This is real Gem.

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

    gotta love that Cobalt2

  • @thirstypooch
    @thirstypooch 6 ปีที่แล้ว

    Very nice

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

    Wes is cool! :)

  • @DavidS-es8cw
    @DavidS-es8cw 6 ปีที่แล้ว +27

    Amazing talk, I really like async / await but the error handling seems too ugly to me so generally I prefer promises

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

      Here's a tip: use .catch with await :) best of both

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

      Try catch blocks 👍

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

    Best proceeding

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

    brilliant

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

    Thanks

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

    great

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

    how to get the slides? love it

  • @NarottamDas
    @NarottamDas 2 ปีที่แล้ว +1

    in the beginning, you said JavaScript does not wait, is it JavaScript or Node Js is non-blocking nature?

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

    when I see this name [Wes Bos], I am like I need to watch the video 🔥🔥🤣🤣

  • @patrasculucian2403
    @patrasculucian2403 6 ปีที่แล้ว

    Wicked

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

    async await gives us synchronous looking code without the downside of writing synchronous code (call back hell)

  • @cyb3r1
    @cyb3r1 2 ปีที่แล้ว +1

    There's a chick in the crowd about to say "can you keep it down cause I'm trying to sleep here?"

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

    6:18 that's the way to enjoy coding :) -- Chick

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

    The fonts of the code is awesome,what kind of the font is ,who knows?

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

    Wes is brilliant async/await not so much...

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

    05:07 aysync await

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

    A S I N K

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

    Why they are sleeping?

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

    14:12 someone is sleeping

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

    The elephant in the room is that when you have to wait for data before doing some processing then it doesn't matter how "performant" your code is.

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

    Sup

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

    that intro could probably pop a speaker... it is horrible sound :(

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

      GOTTA LOVE THAT BASS BRO. POP SOME MOLLY BEFORE WATCHING ANY JS TUTORIALS... WE ALL KNOW THIS IS THE FIRST RULE TO GOOD PROGRAMMING

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

      @@BobbyBundlez lmao!

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

    This guy cannot really code, but can read