Dogs, JavaScript & An API 🐶 Fetch, Promises & Async Await

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

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

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

    For those who have problems with the background. You just have to add the following at the top of the CSS file:
    html, body {
    height: 100%;
    }
    That should fix it.

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

    Love the way this man explains things! very understandable. He goes where others do not! Much respect!

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

    Best ever instructor! Period!

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

    the best Javascript tutor on TH-cam.Thanks a lot for this clear explanation.

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

    Thanks so much for this tutorial. Added to my knowledge of Fetch API.
    Surprisingly though my biggest take away was learning "Separation of concerns" or "Single Responsibility Principle" part of the SOLID code writing principles.
    The current project i'm working on now has 4 functions. Old me would have probably left it all in 1 function. Lols.

  • @shantanuuchak
    @shantanuuchak 2 หลายเดือนก่อน +1

    I recently discovered your channel from your backend video. Loving your work buddy! ❤️

    • @LearnWebCode
      @LearnWebCode  2 หลายเดือนก่อน +1

      ❤️ Thank you so much! Glad the backend video showed up in the algorithm for you and that it was helpful!

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

    Excellent instructor, speaks every word clearly, concise, straight to the point and simple to understand. I'm hooked with your videos.

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

    omg , before seeing your video i've seen others (with API) from decent tutorials pages , but your way in teaching is just NEXT Level ;) thank you !

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

    Brilliantly explained. You made the API fetch command very clear in your explanation-thanks!!

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

    One gem of a person! We are lucky to have his tutorials! Thank you Brad!

  • @joel-rg8xm
    @joel-rg8xm 3 ปีที่แล้ว

    Useful way to populate a select box, nice idea for a fade-in + fade-out slideshow, two thumbs up!

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

    Get this human a medal!

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

    This Geezer is the bomb.Thank you kindly Sir, really appreciate your time and work.

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

    I just found you, you are so calm and explain enough without trying to go over it to fast. Very great Video. Good Job Man Thank You Very Much

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

    Thank you for explaining things so clearly. I don't have a lot of experience with front end development and am trying to learn some basic concepts and this helped a lot.

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

    Love your teaching style. I’m in the Goldilocks phase and you are right, there are not many tutorials for this level. Thanks for your help!

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

    I have been learning from you for as long as I can remember. You never cease to amaze me and captivate my attention in ways that allow me to learn things fully.
    You truly changed my life for the better with the way you bring knowledge over and my family and I will forever be grateful for the opportunities your teaching has allowed me to jump on.

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

      One of the best comment! I hope you are in a better position in the field of Web Development by now. Any progress mate? I would love to hear your update! Kind regards from France!

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

    I can't imagine a better introduction to fetch and Ajax. I watched it twice and follow the code throughout. I highly recommend this.

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

    Thank you so very much! Finally I got this right! You really know how to explain just enough and not too little, not too much.. thats a gift! again.. thank you!

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

    I've never seen such an amazing teaching style like.Everything is cristal clear ! Keep up your awesome efforts and I wanna let you know that I've enrolled in one of your courses on udemy about wordpress, it was a tremendous help to me and really really great and rich content! thanks to you a lot braad! you're the best :>

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

    High quality tutorial - The Goldilocks approach works very well for me!

  • @Peter-qu8rc
    @Peter-qu8rc 3 ปีที่แล้ว +5

    Really great tutorial, perfect for applying all the basics that I've learnt in HTML, CSS and JS. Explained everything clearly, thanks mate.

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

    You magically took me from stupid i hate this, to wow now it is clear and simple. Thanks Brad.

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

    very pleased to learn notations of promise and async at the same time. thanks a lot

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

    You are fantastic teacher out there. Thank you for everything 😊

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

    Great little Project. Super fun, just what i need. Iam done studying, i think what i need is to build many small little projects to cement the knowledge. Thanks again

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

    Yes! Once again. Best instructor ever! Thank you for your being!!

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

    Simply one of the best videos out there! Looking forward to learn more from the other videos 👍

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

    I just wanted to say thank you so much 🙏. It helped me a lot to understand this difficult topic

  • @DungNguyen-jx4lr
    @DungNguyen-jx4lr 3 ปีที่แล้ว

    Your voice is crystal clear

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

    Brad:
    Thank you very much for your incredible and magnificent courses.

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

    Thankyou for sharing with us the logic required when working with api's and your approach on stringing it all together. Your tutorials have given me such insight on how to work with template literals and manipulate functions. So very grateful.)))

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

    **Dabs sweat from brow** Fwoof! For me, that was like running a marathon and constantly having things going wrong, like: "This is fine. This is Fine. OMG I'M ON FIRE! STOP, DROP and ROLL!" **Gets back up to run more, trips, falls flat on face, gets back up to dust self off and keep running** "Oh No... WHAT'S THAT?! NOT THE BEES!" -- I WAS eventually successful in creating the app the way you intended it to work, only it probably took me about 2 1/2 hrs. Thank you for the "Guided Running Tour of Peril" through this tutorial. Keep up the good work!

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

    This video is a total game changer for me.
    I owe you a lot man. Keep going! You have legendary teaching skiws!

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

    Damn a 1 hour long video and that too by Brad Schiff...woah! Needless to say it must be packed with tons of knowledge! Lets watch !

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

    I watched your video first time and I am already fallen in love ... Thanks a lot man for such a great knowledge . I am going to watch your 10days JS too.

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

    I Just came across this course... and i love your teaching man... thanks for the lesson.. I Subscribed and shared

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

      Thank you so much 🙏 I'm glad the videos are helpful!

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

    Sir I purchased your Wordpress Developer Course on Udemy. Great course Sir. No University will teach such courses.

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

    Thanks a ton! this was the easiest explanation to understand all things asynchronous in js.

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

    These timestamps are really helpful

  • @jeff-creations
    @jeff-creations ปีที่แล้ว

    Thanks for all the awesome videos that you produce Cody. You have a natural gift for teaching! Question though: Is it still good practice to use inline JS on the select tab?

    • @jeff-creations
      @jeff-creations ปีที่แล้ว

      I did it like this:
      function createBreedList(breedList){
      breed.innerHTML = `
      Choose a Dog Breed
      ${Object.keys(breedList).map(breed => `${breed}`).join('')}
      `
      let options = document.querySelector('select');
      options.addEventListener('click', (e) => {
      let target = e.target
      if(target.matches('option')){
      if(target.innerText !== "Choose a Dog Breed" ){
      getBreedImage(target.innerText)
      }
      }
      });
      }
      async function getBreedImage(breedName){
      image.src = ""
      const response = await fetch(`dog.ceo/api/breed/${breedName}/images`)
      const data = await response.json()
      image.src = data.message[0]
      console.log(data.message[0]);
      }

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

    It's such a brilliant video. So easy to understand!! Thank you!!

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

    This man Made my career. Thanks Brad

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

    now I am working as a software engineer in a well known firm just because of you. Thanks Brad. Follow you blindly. Thanks

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

    Great video. Love the way you say "corgi"

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

    I really love your style of teaching. Great job!!!

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

    This is exactly what I was looking for, you're awesome!

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

    Brad, Simply great! Perfectly covered a full cycle of fetching a public APi and displaying it on HTML.. Keep up the great videos, I have subscribed to your channel!

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

    Hey Brad, love your courses, just a note - when trying to 'code along' with the screen, it's a bit difficult (I always find this difficult w/ tutorials, but you're such a great teacher, I'm sure you'll understand this consideration) when what you're typing is in the bottom half of the video window, because I basically have nowhere I can put my code editor to code alongside. It becomes a never-ending cycle of stop, start, scroll. Many thanks for this video, though, this is literally the first time I've been able to successfully understand how to use a public API to provide visual data on your site. Your courses are what's allowing me to steer towards more work in coding.

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

      Thanks for the kind words! I'm glad the videos are helpful. That's a good point about the screen positioning, I'll try to remember when filming. If you haven't already, you might try having TH-cam and your Text Editor windows side by side, each taking up 50% of the screen's horizontal space, and 100% of vertical space.

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

    @17:20 Using await keyword consumes the result. I thought it would return promise object but it does not.

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

    Very useful tutorial. And very well explained. Thanks a lot 👍

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

    Your way of explaining is incredible. I am happy to have found your channel. Hug

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

    Thanks Brad. Easy Peasy learning with you! Bought your uDemy js course and enjoying the complex app build. Got 99% of all your coding. Looking forward to the future past your complex app build. I am hoping to do a bit of part time freelance when I 'graduate' -) thanks!

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

    Great drop down animation and design bro...almost looks like the apple theme you know, animations they use in the os

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

    After this video, I subscribed. Really helpful to a noob like me. Thanks man

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

    Amazing clarification. Thanks a lot

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

    Thank you so much Brad, I've to testimony, I've learned a lot from you, and I love the way you explain anything you give in your channel, With you all the best :)

  • @tito-ace
    @tito-ace 3 ปีที่แล้ว

    i always check your videos if you have new interesting one and this is it.

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

    You are an amazing teacher!

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

    Awesome Video Man !! understood Concept from you 👍👍👍👍 👍 🏆 🏆 🏆 🏆

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

    Thanks so much for that tutorial. It was fantastic. I understand async and await much better now. I still don't understand promises but it looks like I don't need to.

  • @ΒινςΜοργκαν
    @ΒινςΜοργκαν 3 ปีที่แล้ว

    teaching level: 9999!!

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

    I have a problem with flex: 1 on the slide, it aint growing even though I set display flex on the parent container.

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

      yeah I am having the same issue!! Did you manage to fix that?

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

      @@ozanefetopcu6428 in css, try html,body { height: 100%}

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

    26.36 part
    I realized something when i was trying to do same to spotify api (trying to get song names into option). That, using Object.keys will only add the 1 2 3 4 5...etc. So i think Object.Keys is good when dealing with an object? but when it comes to an array of objects not so ideal in my opinion.
    [{" "}] - array of object
    {" "} - object
    easy fix for this is =
    ${x.map(function (y){
    return `${y.something}`
    hope this helps people :)

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

      Thanks for sharing that! Absolutely, 99% of the time an array + map is what I'd use here, it just so happened the way the Dog API formatted their data it didn't give us an array.

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

    I cannot make the background visible on slideshow. No color, no image. In any browser. Not even with Brad's code from codepen. Does anybody have an idea why? I would love to finish this cool project! Thanks Brad!

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

      Hey it seems like nobody answered you did you find what was causing the problem? I am having the same issue.

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

      would you care to share if somebody helped u or u resolved on ur own, how u dealt with it?

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

      @@gracezhu4270 I figured out the problem, I don’t know why exactly but in css change “body” tag to “html,body” and added “height:100%; width:100%” to it. I hope this solves it for you

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

      @@ozanefetopcu6428 you saved my life man, thank you!

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

      @@thomasturtle23 ahaha yeah I know that feeling I was almost going crazy.

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

    Hi Brad, I use Linux and I could run your app without problems, after changing the body css with the following line: html, body { height: 100%; margin: 0; font-family: sans-serif}. Source: Understandig Flexbox by Ohans Emmanuel. Awesome Bootcamp!.

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

    Excellent tutorial using public APIs. Thanks, Brad
    {2022-01-19}

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

    Goldilocks all the way - I love these tutorials. Thanks!

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

    This was great. Thank you!

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

    Sure I will share your awesome channel with my friends 😋

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

    Thank u very much Brad.
    Your tutorial is amazing.

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

    Hey Brad....nice job on the video...always enjoy them. Got a question that may or may not be on topic for this video but I know you're the guy to ask...I have a question and answer type form that I'm building and wanted to know what would be the best way of formatting the data using HTML for the data returned from the database. So a user selects a question from a dropdown, the data is retrieved from the database from the dropdown selection and data is returned to the page but it needs to be formatted using either or or combo not html tables...if I'm using jquery to return the data how do I format the data before assigning it to an Id ? Thanks for your help.

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

    Great teaching...again! I want to include a pause button beside the breed selection. Can you direct me or show code example?

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

    Nice Brad, Thank you for the great training. I have just an issue with styling the div with a class of slideshow. I don't know why the backgroundColor will not apply while having the div with a class of slideshow empty. I have to put something on it to have the backgroundColor applied?

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

      I'm also having this issue!!

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

      @@GeorgeaBrooks Yes I couldn't fix that. Even I started from scratch and got the same issue. What I found is something related to flex when I remove display flex and flex direction from the class of app I can see the background color, not at the class of slideshow.

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

      @@GeorgeaBrooks By the way Thank you, George

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

      @@farzinfaezirazi361 I think I understand. Gonna try it now. Thank you.

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

      no, I can't make that work either. Gonna do some deep googling

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

    Your are making very useful tutorials. Thank you! :)

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

    You are very very clear thanks for you video !!!!

  • @SabbirHossain-px4in
    @SabbirHossain-px4in 2 ปีที่แล้ว

    awesome and an amazing video. We Love it

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

    super awesome but actually super complex; Lisa thx

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

    Really great tutorial, thank you

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

    I wish there is more than one like feature in youtube .. waiting for more course on Udemy and more projects other than the social media and task apps .. looking for delivery app

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

    The best explaination/ Thank you very much!!!

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

    Strugling on a STOP and CONTINUE Button Handler for the Slideshow. How to retain the State when stopping in order to enable CONTINUE? Would be a nice Bonus to this super tutorial.

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

    Bro your videos are awesome, thanks a million

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

    This is the perfect Goldilocks zone of difficulty I was going for. Thanks dude.

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

    Your're the goat bro. I'm a big fan. Is it possible to make some videos on JS frameworks such as Angu;lar. Or maybe on databases such as FIREBASE or MonjgoDB.

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

    Unable to complete dog app bc of "cors" problem within fetch. Unable to solve cors issue after doing lookups on subject. Regardless, Brad you should consider a teaching career due to the outstanding methodology you have developed! Thanks for your awesome tutorials!

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

    😁 and i am back! Definitely i could not understand everyyything covered in this video... But i did get the basic idea of all of it soooooooo buddy thaaaankyouuu! This time i am leaving a lemon for you 🍋. Vitamin c would help you to stay fit in this pandemic ♥️🙃tata!

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

    Thank you, I have an idea for a series for you.

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

    I really enjoy your videos.

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

    PROMISES made more sense to me than 'Async Await'. The syntax is easier to follow and understand. I believe 'Async Await' is nothing but a syntactic sugar.

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

    Great explanations, thanks a lot!

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

    Great, this is a very helpful lesson! thanks a lot for your great effort.

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

    what are you using to make that rectangle to point to a specific part of the screen?

  • @user-ttishere
    @user-ttishere 3 ปีที่แล้ว

    great explaination. good job

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

    Great video, thank you for sharing, Cheers

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

    Love your courses thank you!

  • @dror-krief
    @dror-krief ปีที่แล้ว

    thank you man
    it's very useful

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

    Long but good, thanks

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

    Great video. Can you make a video about "real" async programming in Javascript/TypeScript?

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

    Great content :) Thank you.