Top 5 Async Mistakes for JavaScript Beginners (Don’t make these!)

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 33

  • @JohnDoeX1966
    @JohnDoeX1966 Рік тому +7

    James you asked awhile ago what kind of content we the viewers are looking for? This is exactly the kind of “top tips for [enter JS topic]” that we find the most helpful.
    Also, these videos are likely to go viral which would help out your viewer and subscriber count

    • @JamesQQuick
      @JamesQQuick  Рік тому +1

      Thank you so much for this response! My wife and i have been talking about this for a while, and that's basically what we came up with. Kinda getting back to the basic. Again, thank you for the positive feedback. It really means a lot!

  • @TedDaddin
    @TedDaddin Рік тому

    James - thanks for the video. With the promises array and Promise.all() what's the memory limit? I run into this often. Also, with Promise.all() and the email example, it will stop execution when there is a failed promise. This can get tedious to know which emails were successful. I like using Promise.allSettled to know what was successful or failed.

  • @christopheanfry2425
    @christopheanfry2425 Рік тому

    Very good video. Really nice examples, always good to have a refresh on this topic, but sorry to say that not as good as your Remix swag 🤣🤣🤣 so jealous.

    • @JamesQQuick
      @JamesQQuick  Рік тому +1

      hahaha one day maybe you'll get a Remix hoodie!

    • @christopheanfry2425
      @christopheanfry2425 Рік тому

      @@JamesQQuick will work twice more for that 🤣

  • @User-px6gz
    @User-px6gz Рік тому

    Which extension he is using which allows to console in the vs code ? 🙄

    • @JamesQQuick
      @JamesQQuick  Рік тому +1

      It's the Quokka extension. It's super nice!

    • @Raul-si7bn
      @Raul-si7bn Рік тому

      @@JamesQQuick that feature isn't fully free, is it?

  • @eusebiu1050
    @eusebiu1050 Рік тому +1

    The npm package called "express-async-errors" handles async errors for us, so it's not a must to do it manually

  • @LGelashvili
    @LGelashvili 10 місяців тому

    " console.log(await loadPokemon(1)) " - Isn't this syntax incorrect? I mean "await" in the console.log.

  • @LePhenixGD
    @LePhenixGD Рік тому +2

    3:45 Won't that return an error since the "await" keyword can only be used inside an asynchronous function?

    • @JamesQQuick
      @JamesQQuick  Рік тому

      I actually didn't exactly think about that, but it seemed to work on my end. Actually kind curious why/how that works there

    • @MakaronNaOstro
      @MakaronNaOstro Рік тому

      good question

    • @grumpylibrarian
      @grumpylibrarian Рік тому +2

      @@JamesQQuick Top level of modules now work with await. This wasn't always the case, but it's been in place in Node and browsers for a while now. You can really screw yourself pretty badly with loading the module tree if you await something slow or circular at the top level, so be careful with it.

  • @yehudz
    @yehudz Рік тому +1

    Why do you have to do stupid faces in the thumbnails? You're above that.

    • @JamesQQuick
      @JamesQQuick  Рік тому +1

      Well research shows those typically help with CTR, so that's why. Sorry if they're cringy :)

  • @manojbhamre6062
    @manojbhamre6062 Рік тому

    Great.... today i was facing performance issues with loop & async await... tommarow i will try...and hopefully it will work 😅

  • @NeverCodeAlone
    @NeverCodeAlone Рік тому

    Thx so much!!!

  • @sarahwbs
    @sarahwbs Рік тому

    Chapter names would be super helpful in a video like this.

    • @JamesQQuick
      @JamesQQuick  Рік тому

      It actually does have the timestamp metadata. I'm not sure why it's not showing up...

    • @JamesQQuick
      @JamesQQuick  Рік тому

      Ah I had a typo. Fixed now!

  • @darkrany2692
    @darkrany2692 Рік тому

    Thanks James for other good video 👍

  • @dopetag
    @dopetag Рік тому

    Nice tips, James! Thank you

  •  Рік тому

    Very, very useful!!

  • @yuusource2275
    @yuusource2275 Рік тому

    Good video.