Ten Steps to Mastering the Fetch API

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

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

  • @jesf570
    @jesf570 ปีที่แล้ว +22

    I've seen a lot, and within 5 minutes I can tell, this guy is a natural real life teacher not just a TH-camr. Name checks out. Love it

  • @IntrinsicFlake
    @IntrinsicFlake ปีที่แล้ว +56

    I appreciate your channel so much. I randomly came across it while giving myself a refresher on a few things, and your JavaScript playlists are excellent. Now we get this gem??? Super awesome!

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

    Hands-down, one of the best teachers out there, regardless of discipline.

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

    I thought ColorCode was good, but then this guy appeared in my playlist while I was sleeping! OH MY GOD! You are a wonderful teacher / presenter!!! The BEST!

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

    You're one of the few who could actually TEACH programming concepts. Thanks for creating rich content for us, I appreciate it. This could have easily been a premium course. I, myself, am a content creator/instructor, and I know how hard and time consuming it really is to put together a course with this quality and chaining/relating each section to each other. Again thanks for sharing such a high quality tutorial with us, free of charge.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว +5

      Well, that is what I do for a living. I run the Mobile Application Design & Development program at Algonquin college in Ottawa, Canada.
      I originally started this channel as a resource for my own students but then it grew organically. Now I know of at least a dozen college programs that use my videos as part of their curriculum.

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

    You are the best, the way you just handle the code, your calmness your warm voice all come with a very sweet rhythm and atmosphere of learning.

  • @kritikaverma8739
    @kritikaverma8739 2 หลายเดือนก่อน

    Stumbled across your channel randomly and I'll have to say yours is the best explanation on yt and that's saying a lot because I have already watched 100s of them trying to make sense of javascript. Thanks a lot Steve. 😊

  • @gauravdaware8671
    @gauravdaware8671 7 หลายเดือนก่อน

    This tutorial provides a comprehensive overview of fetch() api, covering all the essential aspects in depth. Thanks to Steve.

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

    This is by far the best fetch tutorial. Thank you so much for taking the time. A slow peace explanation really makes the difference for some of us to understand better

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

    Wow... This is basically what I need. Just built a few apps (including a weather app) using fetch API and wanted to get deeper into the subject because I used multiple fetch calls in the weather app and wanted to organize them better (among other things). This is perfect timeing for something I really needed. Thank you!

  • @ruudkorunka
    @ruudkorunka 9 หลายเดือนก่อน

    This is by far the most extensive tutorial about FETCH. This will be my standard issue from now on.

  • @xzex2609
    @xzex2609 3 หลายเดือนก่อน

    you can not imagine how valuable this video is, I killed myself to learn these stuff in the video and all I got was documentation to read. thanks

  • @abdallahazme4757
    @abdallahazme4757 4 หลายเดือนก่อน

    Thank you so much sir! I really like your teaching style, no flashy edit, no colory stuff just good explantions of concepts, just to the point. I really wonder if you could have the time to make videos for basic web apis outside the flashy now days frameworks

  • @Franklin7x
    @Franklin7x 9 หลายเดือนก่อน +1

    You are the best! Thank you very much, your content is perfect. You speak very clearly and calmly. I'm not a native English speaker, but it's very easy to understand what you're saying. I'm learning a lot from you, thank you very much Steve! best youtube channel.

    • @Franklin7x
      @Franklin7x 9 หลายเดือนก่อน

      I can rewatch this video 10x times and I not get tired of it 😁

  • @jacobwwarner
    @jacobwwarner 10 หลายเดือนก่อน

    I wasn't aware of creating a URL object before to run the fetch request. I've only passed in the URL as a string, so this is new and inciteful. Thanks

  • @sjshdhehbesjks
    @sjshdhehbesjks 8 หลายเดือนก่อน

    best teacher on internet thanks a lot for providing this quality content for free

  • @Aditya-gh4jy
    @Aditya-gh4jy ปีที่แล้ว

    The best Explanation of the Fetch API on TH-cam.

  • @fahadmohamed5734
    @fahadmohamed5734 2 หลายเดือนก่อน

    2:18:41 WoW this definitely as you said "the last fetch vid I'll need" well done well structured and I like your sense of humour ❤😂.
    I'm amazed by the power of JS & Browser on handling all that seamlessly.

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

    oh my god, I’ve watched many tutorials on YT, but this is the new type of the video I’ve never seen before.
    Great work!

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

    I wanted to thank you twice xD
    Thank you for sharing your knowledge with the world.
    If you by chance were looking for some video ideas:
    - Development to Production process
    - How do you know if your basic static website is secured enough to go online?
    - More in depth on unit tests
    - Authentication for Registration and Logging in (with testing)
    Just some suggestions!
    I look forward to more of your videos :)

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว +2

      Thank you again!
      I have a video where people can post requests and vote on the requests - th-cam.com/video/LCezax2uN3c/w-d-xo.html
      On my own list I have over 2000 videos that I want to make. :) Just a question of time.
      unit tests and web authentication are two topics that I hope to do soon though.

  • @TyronneRatcliff
    @TyronneRatcliff 2 หลายเดือนก่อน

    Solid content! If you can master the Javascript Fetch API you will have a really good understanding of how the frontend end of an application communicates with the backend.

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

    I was waiting for this type of compiled videos!
    finally you are doing this!
    It might sound cheesy but you are the best on the youtube!

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

      also finally we got to see you on your thumbnail!
      i would say you are the best js GURU, i don't know what the youtube algo is doing(don't know why so underrated!)

  • @devynity4507
    @devynity4507 11 หลายเดือนก่อน +2

    I will start this tomorrow, I'm searching for "THAT " one video that will lead me back on my path again because it seems that I'm currently not moving forward as of late, I hope this video is it!

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  11 หลายเดือนก่อน +1

      Good luck! 👍

    • @devynity4507
      @devynity4507 11 หลายเดือนก่อน

      @@SteveGriffith-Prof3ssorSt3v3 Thank you for this video! Its so easy to follow, Thanks for making me move forward prof!

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

    OMG! the way you explained these concepts maked them look so simple you a wonderfull teacher and an amazing human being , i can't thank you enough now matter what i write , thank you from the heart.

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

    Have got a good feeling just seeing this 2 hour plus lecture ❤. That too on fetch API

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

    Proffessor is the best..
    i mean it. Any time i want to understand more about web development stuffs then i come to your channel.
    Thanks for all you do @Steve Griffith ☺☺.

  • @prashanherath9944
    @prashanherath9944 10 หลายเดือนก่อน

    excellent content ♥. A teacher who knows stuff and most importantly who knows how to TEACH. Thank you !!!

  • @dimjim2365
    @dimjim2365 10 หลายเดือนก่อน

    Wow, my mind is totally blown. Ha. Thanks. Wish I had found this 2 months ago. You have answered soo many questions that I had. Love the presentation.

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

    This is the ultimate video i was looking for in last 24 hours, thanks for the effort, added a star to your github repo.

  • @xzex2609
    @xzex2609 3 หลายเดือนก่อน

    your channel is a gold mine.

  • @daniel_williams
    @daniel_williams 4 หลายเดือนก่อน

    Can't thank you enough for your effort to make such amazing tutorial. It was fun to watch and clear enough to understand. Take love professor♥

  • @omojjegomosc8211
    @omojjegomosc8211 7 หลายเดือนก่อน

    Best API tutorial that I've seen.

  • @chmkzt
    @chmkzt 5 หลายเดือนก่อน

    Thank you so much Steve. You make this so easy to learn.

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

    What a great deep dive into fetch. It feels so nice to know I can always come back to this video for fetch documentation. Thank you!

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

      i never got it so better. really. everytime i have an issue I search this channel

  • @FlamingoFliez
    @FlamingoFliez 27 วันที่ผ่านมา

    your work is so clean!

  • @pranaypaul5216
    @pranaypaul5216 9 หลายเดือนก่อน +1

    Great content this is what i'am looking for and i found it Thank you

  • @eric55099
    @eric55099 4 หลายเดือนก่อน

    You the BEST...much love from Nigeria

  • @ryanwoods3333
    @ryanwoods3333 11 หลายเดือนก่อน +1

    Thank you Steve!
    Unit testing with React would be really helpful and especially how to mock API calls since I don't fully understand it.

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

    Thumbnail game on point!

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

    Gold! Thank you professor 🙏🏼

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

    Sir thank you I was struggling to understand this thing but you made it so easy.

  • @awakenwithoutcoffee
    @awakenwithoutcoffee 6 หลายเดือนก่อน

    Hey Steve, thank you for the amazing course! Very generous of you to share so much knowledge. I do have a question:
    - the server isn't working for me properly, do you have a video or resource that goes over setting one up ourselves like you did ?

  • @johnmahugu3527
    @johnmahugu3527 2 หลายเดือนก่อน

    this is perfect prof, thank you so much for this.

  • @TyronneRatcliff
    @TyronneRatcliff 5 หลายเดือนก่อน

    Awesome tutorial. Thanks!

  • @smilemakerb
    @smilemakerb 7 หลายเดือนก่อน

    Awesome tutorial! Always love your videos

  • @mikelantzelo
    @mikelantzelo 7 หลายเดือนก่อน

    Thank you very much!!!Excellent explanation

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

    Your tutorials are always amazing Steve. Your old subscriber here 😊

  • @matteonegridev
    @matteonegridev 6 หลายเดือนก่อน

    Wow this is amazing! Best teacher hands down!

    • @matteonegridev
      @matteonegridev 6 หลายเดือนก่อน

      P.s I came across your channel randomly, then realized I was following a Reddit thread and you were there!

  • @filipivanovic9556
    @filipivanovic9556 8 หลายเดือนก่อน

    this tutorial is a pure gold

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

    Thank you Steve. Thank you very much my friend for the great content.

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

    Many many thanks Steve for sharing

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

    Absolutely flawless video, thank you very much!

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

    Bless you Prof3ssor.

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

    Best teacher and a great explainer!

  • @amirhosseinghasemi4831
    @amirhosseinghasemi4831 9 หลายเดือนก่อน

    I really enjoyed it. Thank you

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

    extremely amazing content, Thank you so much 🤩🔥

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

    I can't wait to dig into this!
    One question - does it cover ReadableStream and WritableStream? Or do you have other videos that do?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว +3

      In the bonus section it briefly touches on using Readable streams to monitor download progress.
      I have other videos for streams planned though.

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

      @@SteveGriffith-Prof3ssorSt3v3 great, thanks!

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

    Neat as always,
    i think a lot of devs need this, especially when -tech leading- teams like vercel are using the fetch api as their primary method to handle http transactions.

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

    This is incredible!!! Thank you so much professor!

  • @rommeld.guerrerov.8505
    @rommeld.guerrerov.8505 ปีที่แล้ว

    Great content and explanations

  • @bones1225
    @bones1225 หลายเดือนก่อน

    About time somebody actually produced an informative/useful/enlightening/dummyfree/fun to watch vid. Many thanks. Change your channel name to Jesus helping the poor.👏

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

    Hi Steve, I really appreciate your dedication to your videos. I have gained so much value. Thank you.
    Is there any plans on realising videos for MVC / Design Patterns?

  • @shahinza
    @shahinza 8 หลายเดือนก่อน

    Hello Professor, @35:37 in your video, you mentioned that there is a FOOTER as well, but I couldn't find any information about it online. Could you please assist me in finding resources to learn more about it? Thank you

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  8 หลายเดือนก่อน +1

      The standard has actually changed quite a bit since I first started working with HTTP requests. There is now a crc calculation in the footer of a gzipped file. So, if gzip is being used to compress the resource that is being transferred over http, then that is where you will find the crc.
      There can also be crc checksum values in the TCP/IP layer. These are backed up by other crcs that can be found in the Ethernet layer.
      All this to say, you don't need to worry about crc in your fetch calls.
      However, if you are interested in providing some more integrity for your files - script and link tags in your HTML - and you want to make sure that they are "verified" or not tampered with or modified, then you can add the integrity attribute to those tags. th-cam.com/video/5a3LthQ2xCI/w-d-xo.html

    • @shahinza
      @shahinza 8 หลายเดือนก่อน

      @@SteveGriffith-Prof3ssorSt3v3 Thank you so much, Professor.

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

    Great content, amazing value

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

    FANTASTIC!

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

    nice job dude! that was awesome! tks a lot!

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

    always great content !!

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

    what I love about your videos is that I know I’m always going to learn something new, even for topics I’m already familiar with. thank you for the depth, detail and care that you put into your content!

  • @GurpreetSingh-op3ie
    @GurpreetSingh-op3ie 10 หลายเดือนก่อน

    Great content! What about interceptor, can we intercept all fetch calls. If not we can always write a wrapper.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  10 หลายเดือนก่อน

      There is no global handler for fetch calls. You can send an abort signal to kill a call. - th-cam.com/video/3yTs1NJZyBk/w-d-xo.html
      You can wrap a collection of fetch calls in a Promise.all( ) or Promise.race( ) or Promise.allSettled( ) call. th-cam.com/video/p0teXNcgR_Y/w-d-xo.html

  • @246rs246
    @246rs246 ปีที่แล้ว

    like always best content ever

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

    great video, a lot of useful info

  • @mdsazzadhossainsiam6279
    @mdsazzadhossainsiam6279 5 หลายเดือนก่อน

    I love to learn something in detail. It's a really helpful tutorial.
    But sir, you created a response object (0:32:35 ) but didn't use it. Is there any case to use it?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 หลายเดือนก่อน

      When saving files in the cache via the Cache API, I create custom Response objects all the time.
      When working with PWA and service workers, you will need to send back custom Response objects too.

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

    the video is very helpful and informative.

  • @Guyfromearh1
    @Guyfromearh1 5 หลายเดือนก่อน

    hey there!
    thanks for your simple and deep speech , just one small question when i write export at the first before writing function i get an error what is that for?
    thanks if you help me.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 หลายเดือนก่อน

      What kind of error? What is the error message? Without seeing your code I don't know what you have done wrong.

  • @zoropppp
    @zoropppp 10 หลายเดือนก่อน

    You are a Genius ❤❤❤❤

  • @hesamrahmani
    @hesamrahmani 8 หลายเดือนก่อน

    your amazing this video was so useful for me

  • @valenciawalker6498
    @valenciawalker6498 7 หลายเดือนก่อน

    Thank you!

  • @joshuaachorn8327
    @joshuaachorn8327 8 หลายเดือนก่อน

    What font are you using? I love the style of the () characters

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

    This is great boss..thanks

  • @blendshala6506
    @blendshala6506 6 หลายเดือนก่อน

    this is amazing

  • @simonmalaret5506
    @simonmalaret5506 5 หลายเดือนก่อน

    On part 5 it feels like your code in vulnerable to XSS. I've heard quite a lot about that and I am in the point of my dev journey where I want to understand how to write code that isn't vulnerable in vanilla js. Would you mind explaining how the code in the video is vulnerable pls? How to not make it vulnerable?
    Thank you :D

  • @DeathBender
    @DeathBender 9 หลายเดือนก่อน

    Shouldn't we just use Observables (RxJs) or Project Reactor nowadays? Is the Fetch API (promises) still the "way to go"?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  9 หลายเดือนก่อน +1

      Yes. Using the vanilla js core features are always better if you know what you're doing

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

    Hi Steve. Thanks for this valuable tutorial. If I may ask, innerHTML method isn’t recommended coz of performance and security issues. Does it mean using it alongside .map() and .join() methods makes it less secure and enhance performance

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว

      The source of your data is the source of any insecurities. If you don't trust your data source then you need to validate the data before using it on your page.
      InnerHTML gave poor performance a long time ago. Using it once to parse and append a chunk of html will still be faster than calling append repeatedly.

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

    Thank you in advance

  • @Glitch-txs
    @Glitch-txs 9 หลายเดือนก่อน

    amazing!

  • @vinoverde74
    @vinoverde74 6 หลายเดือนก่อน

    Thank you so much for this excellent detailed tutorial. Appreciate your teaching style greatly. I am having a little trouble with fetch in section 4 (Response objects) timestamp 43:58. I am trying to fetch the fontstr and not sure how to apply it to the CSS. Here is my code. Will be grateful for any help.
    fetch(fontstr)
    .then((resp) => {
    if (!resp.ok) throw new Error('Invalid response')
    return resp.blob()
    })
    .then((blob) => {
    let fonturl = URL.createObjectURL(blob)
    let element = document.getElementsByTagName('h1')[ 0 ]
    let myFontFace = new FontFace('myFont', 'url(' + fonturl.blob + ')')
    console.log(myFontFace)
    element.style.fontFamily = myFontFace // console.warn(err.message))

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

    Thank you, professor, as always.
    For the 2nd module (try-async.js). Is it not possible to throw a new Error object and save it in a variable? I'm getting an "Expression expected" and not sure why. I was thinking of creating a custom error object to reference in the try catch block.
    if(!response.ok) {
    let myVariable = throw new Error('not a valid response')
    }

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว

      You can put an error object into a variable like this:
      let err = new Error(`message`);
      However, as soon as you throw the error it goes immediately to the catch. No assignment takes place.

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

      ​@@SteveGriffith-Prof3ssorSt3v3 Interesting, I'll look more into it. See if it's possible with a second await keyword or perhaps using setTimeout. You dont have to respond with a yes or no; let me dig this rabbit hole. =)

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว +1

      @@fellastout that's when the learning happens

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

    Thank you ..!!

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

      you have to good stuff to watch !! and a very nice way of communicating the material. Peace .....

  • @nevestunga955
    @nevestunga955 6 หลายเดือนก่อน

    👌👌👌👌👌👌👌

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

    Wait is this better than the fetch(or ajax) playlist you have

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว +1

      It's everything in that list put together in a connected logical way with a few new things

  • @MRMOTOFOTO
    @MRMOTOFOTO 9 หลายเดือนก่อน

    The thumbnail title is not a lie

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

    now you are getting views what you really deserve

  • @fahadmohamed5734
    @fahadmohamed5734 2 หลายเดือนก่อน

    1:53:14 guess who was getting around with cors 😂😂😂😂💔

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

    You are very handsome. I am not gay. I don't know why I clarified that but you are a handsome fella.

  • @Brad_Script
    @Brad_Script 11 หลายเดือนก่อน +2

    innerHTML with string interpolation is nice but it's unsafe. You should never use it with data coming from the outside, you risk having XSS. It's much safer to build html element with document.createElement then use the innerText/textContent setters to safely write the content on the page.

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

    You're a "manancial" of information...
    complete, relevant and exaustive information...
    but man... 2h20m!!! (with pausing for testing, etc. etc.) that is exausting !!! ;-)

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

    Grate course, that's what I'm learning right now. Thank you very much!