What is a callback?

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии • 349

  • @RogerThat902
    @RogerThat902 7 лет назад +211

    Best explanation I've seen. Thank you.

  • @lisam5509
    @lisam5509 4 года назад +79

    The fact that you could make this less than 5 minutes and explain things so simply and clearly is incredible! If only my college courses could have been this clear, I would have saved so much time. Thank you!

    • @fluxcap4630
      @fluxcap4630 3 года назад +5

      I have a degree in CA and my university never even mentioned this
      What a scam

    • @SouthernHerdsman
      @SouthernHerdsman 2 года назад

      College courses are designed to let a portion of the people fail so that they can charge double the money for the same course, as well as achieving compartmentalisation between employees to keep people ignorant about their company and their employers. The elites extract resources from individuals through manufactured circumstances. They are satanists and they don't care.

    • @lisam5509
      @lisam5509 2 года назад

      @@SouthernHerdsman I 1000% agree....

    • @russkydeutsch
      @russkydeutsch Год назад

      ​@@fluxcap4630figures. California is full of liberals.

  • @paulovinicius9940
    @paulovinicius9940 4 года назад +78

    THIS SHOULD BE *THE ONLY EXPLANATION* OF CALLBACK FUNCTIONS, ALL THE OTHERS EXPLANATIONS ARE NOTHING BUT *SHIT* COMPARE TO THIS MASTERPIECE!

    • @anthonywanjala678
      @anthonywanjala678 3 года назад

      i agree with you 100%...youtube should be filtering trush...

  • @ginnerzapata5909
    @ginnerzapata5909 5 лет назад +72

    Bro, I had 3 months trying to understand this... I even thought I wasnt made for coding... You changed my mind. Thanks!

    • @Martin958
      @Martin958 4 года назад +6

      Exactly the same for me.

    • @MrSpock-sm3dd
      @MrSpock-sm3dd 3 года назад +7

      I had the exact same experience as you LOL. It took me two months to figure this shit out and I thought about giving up programming for some moments

  • @JoshKeenan42
    @JoshKeenan42 6 лет назад +16

    I have been studying JS for over two years and have beaten my head against a wall for so long trying to understand this fundamental concept in a less obscure way. Your explanation made perfect sense the first time and I can now confidently say that I understand callbacks. Thank you!

  • @brandonr8269
    @brandonr8269 2 года назад +1

    "We're going to use a callback to enforce the order of operations that we want". THANK YOU!

  • @MrSuperawesomeisme
    @MrSuperawesomeisme 7 лет назад +43

    I agree with a lot of the viewers! Best Explanation I've seen on the internet so far! Thanks.

  • @trido3815
    @trido3815 2 месяца назад

    Shortest and clear explanation along with a great example. Thx.

  • @tyvicstallworth
    @tyvicstallworth 4 года назад +1

    3 year old video, I've been trying to understand the concept for 2 days now, you made me understand in less than 5 minutes. Mad thanks.

  • @danydilo
    @danydilo 6 лет назад +7

    Great stuff, I have spent hours trying to grasp the callback concept watching video lessons, without success. You have given a brilliant explanation and I now understand it! Thank you!

  • @singakhorus7314
    @singakhorus7314 3 года назад +2

    The clarity in your explation was amazing. Finally understand what callbacks are. Thank you :)

  • @jwlzloff26
    @jwlzloff26 3 года назад

    God bless you, 3 years later you rescued a confused hobby coder :).
    I watched videos with complex content about callbacks of 1 hour and didn't got it and you taught it me in less than 5 minutes :D!
    Big thx!!!!

  • @tammytreit3877
    @tammytreit3877 5 лет назад

    I read like 20 different explanations before finding this video that all basically said "A callback, calls back to the function to say it's done" which was not clear. THIS makes sense, TY!

  • @netero8888
    @netero8888 6 лет назад +3

    Finally, a clear and concise example that got me to understand callbacks!!! You're the man!!! ;)

  • @esilee
    @esilee 2 года назад

    The shortest and clearest explanation I could find...THANK YOU!!! You made that so easy..

  • @d_agudo
    @d_agudo 3 года назад

    This is the only video you need to understand callbacks! Thks a lot man!!

  • @bishalthapa3154
    @bishalthapa3154 3 месяца назад

    even after 7 years, Your teaching is the best. I have watched 10's of video related to this topic but couldn't understand, Your just 4 minute video is better than 18-20 min video of other. Thank YOU

    • @bishalthapa3154
      @bishalthapa3154 3 месяца назад

      RUclips just recommended your video and its first time RUclips algorithem has done good

  • @Shadowless_Kick
    @Shadowless_Kick Год назад

    This is indeed one of the best videos on callback in Javascript.

  • @zabelzarock6161
    @zabelzarock6161 7 лет назад +66

    incredible well explained

  • @fcssbdk
    @fcssbdk 3 года назад

    I've done 100's of hours of videos on JS/NodeJS etc. and have an AP in Comp. Sci. Been using callbacks, but basically just more of memorization to survive than actually understanding the concept. This video just made everything click within 5 minutes. Fucking hell, your explanation is so good, precise, clear, concise. Well done, i freaking appreciate you!

  • @captainnemo6873
    @captainnemo6873 7 лет назад +2

    I didn't understand the call back concept clearly until I watched this one! Very good! Thanks a lot!

  • @takethefirststepsem
    @takethefirststepsem 5 лет назад

    Finally a video that explains it well without so much mumbo jumbo. Best video on what a callback is. Thank you.

  • @aaa4363
    @aaa4363 3 года назад

    Probably the 10th explanation I have visited and now I can finally put this to rest thankyou!

  • @Mooblr
    @Mooblr 5 лет назад +3

    It's amazing how much easier you made that, compared to other videos.
    Thank you.

  • @driftking1045
    @driftking1045 4 года назад +2

    The best way of explanation. Simple & clear

  • @sahracton8744
    @sahracton8744 2 года назад

    5 years later of Js programming, I finally get what a call back is! Thank you :)

  • @fluxcap4630
    @fluxcap4630 3 года назад +1

    Great video! I've watched several on callbacks and this is by far the most clear

  • @sirghivladimir6507
    @sirghivladimir6507 5 лет назад

    Best explanation ever on a callback function.

  • @KRoc
    @KRoc 7 лет назад +23

    Very useful!! Other tutorials that I visited didn't explain why so much as just showing examples.

  • @jeyanthkothari
    @jeyanthkothari 5 лет назад

    The best explanation of a callback on RUclips!

  • @palmweaver
    @palmweaver 6 лет назад

    Best really short (yet full) description of callbacks I've found..

  • @ankitanand3308
    @ankitanand3308 5 лет назад +1

    one of the best one i have ever seen regarding callbacks. Thank You.

  • @GlassTecRacing
    @GlassTecRacing 6 лет назад +1

    Excellent description. All of the documentation I found online wasn't very clear, but this is demonstrating simplistically but sufficiently! Great job dude!

  • @theconversation9103
    @theconversation9103 5 лет назад

    Callback function - A way to enforce the order of operations to protect against any timing issues that could occur between getting and posting data. Great explanation, thanks.

  • @BondedSeven
    @BondedSeven 7 лет назад +7

    Couldn't have been stated more clearly. Thanks for the knowledge :)

  • @kamichikora6035
    @kamichikora6035 4 года назад +1

    The best on the whole of RUclips.. and I've watched many videos

    • @codekits7759
      @codekits7759  4 года назад

      No problem! Check out the Fullstack React tutorial on www.code-kits.com it's well explained too.

  • @jotaroisdarius1918
    @jotaroisdarius1918 2 года назад

    The array.push example was on point, thanks man, i am finally able to understand this

  • @youmevinod
    @youmevinod 6 лет назад

    Incredibly easily explained. I don't think I am forgetting this again

  • @qwantyqwanty
    @qwantyqwanty 3 года назад

    BEST EXPLANATION I HAVE EVER SEEN BRO I WATCHED LIKE 6 VIDEO ON IT DIDNT UNDERSTAND IT U THE BEST

  • @mpreports2809
    @mpreports2809 4 года назад

    Dudeee you are Amazing! I was like 1 hour trying o understand, and I came across with this video and I managed to understand it in less than 2 minutes. You deserve a like bro

  • @mohamedyahia7705
    @mohamedyahia7705 2 года назад

    5 years later and that is the best explanation for callbacks on earth hands down

  • @Awesomedariness
    @Awesomedariness 6 лет назад

    best tutorial ive seen so far on callbacks

  • @loosethread8754
    @loosethread8754 2 года назад

    OMG My mind was blown on how you explained it!

  • @pnoboesam
    @pnoboesam 2 года назад

    I can't believe he just explained a concept I have been struggling to understand in less than 5 minutes

  • @XarsVariety
    @XarsVariety 6 лет назад

    Excellent explanation. Simple, direct, clear, and the example was easy to follow. Thank you very much, many videos have trouble getting to the point and inflate the videos with other information that can exhaust a viewer.

  • @SuperFernando2007
    @SuperFernando2007 7 лет назад +18

    WOW! Finally this makes sense!!

  • @matejajovanovic132
    @matejajovanovic132 4 года назад +1

    Crystal clear, good explanation

  • @ohayuhanna
    @ohayuhanna 4 года назад +1

    I ran into this concept doing something with timers. The wikipedia page was totally unhelpful. This is incredible.

  • @Martin958
    @Martin958 4 года назад

    I think I FINALLY understood callback functions! Thank you.

  • @odebroqueville
    @odebroqueville 6 лет назад +1

    Excellent explanation! I finally understand the concept of callbacks. Thank you.

  • @the5678ss
    @the5678ss 5 лет назад

    Please make more. That was by far the best explanation I've seen

  • @ChadDoebelin
    @ChadDoebelin 2 года назад

    Crystal clear, Got right to the point. The other videos were all 20 minutes long.

  • @kanankontorovsky6537
    @kanankontorovsky6537 2 года назад

    Thank you so much, I finally understand. I appreciate how you explain slowly and with detail. Your code example is also very precise to the topic too.

  • @tomiwaadey
    @tomiwaadey 7 лет назад +1

    Finally! You explain things well my friend. Subscribed!

  • @imcrazyru1
    @imcrazyru1 5 лет назад +1

    Nice Lesson! Very well presented, short and to the point.

  • @SuperSamsosa
    @SuperSamsosa 6 лет назад

    Cudos to you. The concept of callbacks is fairly new to me and i looked up i lot of tutorial but you .. i repeat you gave me the full grasp of it. YOU ARE GREAT !!!!

  • @bibek8284
    @bibek8284 6 лет назад

    Simple explanation, watched more than 10 videos, This one has best explanation
    Thanks

  • @LaughingMan44
    @LaughingMan44 2 года назад

    Straight to the point, real-world example, intelligible accent. Nice one.

  • @angelanorris546
    @angelanorris546 6 лет назад

    Very helpful(clear,concise) explanation of callback functions. Thanks

  • @akarshmittal9601
    @akarshmittal9601 Год назад

    I can't belive I was having problem in understanding callbacks. Your explanation makes it look too easy 😂

  • @kaviramsamy3708
    @kaviramsamy3708 6 лет назад

    The example was just perfect for explaining callbacks and made very clear. Thanks

  • @neomh9474
    @neomh9474 3 года назад

    This guy is such a good teacher

  • @Jemmeh
    @Jemmeh 6 лет назад +1

    Very clear explanation, and great example. Thank you.

  • @juantokyo_
    @juantokyo_ 7 лет назад +3

    Great video! Have viewed a few others on RUclips and yours is easily the best of the ones I saw. You kept the video super simple and explained the concept of callback really well.
    Can you please do one on JS Promises?

  • @talesjardim279
    @talesjardim279 4 года назад +1

    Congratulations .. perfect explanation

  • @salmanZafar74
    @salmanZafar74 7 лет назад +4

    This is so easy to understand. Thanks lad.

  • @baluditor
    @baluditor 4 года назад

    Thank you. Been straggling with this concept for a while, now it's clear.

  • @menjaholmwettergren5058
    @menjaholmwettergren5058 7 лет назад +2

    Super usefull example that make callbacks understandable

  • @Crazyshizz007
    @Crazyshizz007 7 лет назад +2

    btw what font are you using in atom? I love it

  • @dawsonbowling1855
    @dawsonbowling1855 Год назад

    Third or fourth video I watched to understand. Now I got it. Thank you!

  • @blakerunyon09
    @blakerunyon09 4 года назад

    Awesome video dude! I watched a few before this really clicked for me, I think yours did it!

  • @Beny123
    @Beny123 4 года назад

    Best explanation on callbacks

  • @mojtaba.zamani
    @mojtaba.zamani 2 года назад

    Thank you, Sir. The best explanation I've ever seen

  • @rohitgour10
    @rohitgour10 3 года назад

    Has anyone noticed that the curser at 4:20 has a micro-interaction, which is just cool. Really liked it.

    • @rohitgour10
      @rohitgour10 3 года назад

      what is that, how I can also do that?

  • @erojoseph604
    @erojoseph604 2 года назад

    This is the best explanation so far. thanks

  • @mraiyannayeem3846
    @mraiyannayeem3846 5 лет назад

    Great way to explain callback function.

  • @natariee7527
    @natariee7527 2 года назад

    I think the example here is awesome by showing that when using callback function, two separate functions are included together in one function. So basically it is because the callback function is put at the bottom part of the other function that we can ensure all functions can take their time and run.

    • @haroldcruz8550
      @haroldcruz8550 2 года назад

      inside of another function, not bottom. You use another function to control when your "callback function" is executed. In this example, the add user function ensures that the call back function "getUsers" is called only after the user.push() is called.

  • @codekits7759
    @codekits7759  4 года назад +2

    If you like this teaching style, check out codekits.gumroad.com/l/mariustemplate to learn fullstack web development with React!

  • @MurodilDosmatov
    @MurodilDosmatov 2 года назад

    I understood everything as I drank water. Thank you

  • @krazzington9896
    @krazzington9896 2 года назад

    "By the end, I GUARANTEE, you'll understand perfectly"... And he fuckin nails it.

  • @akilprasathr353
    @akilprasathr353 5 лет назад

    Never seen a video this much simple. Thanks man ❤

  • @martingustafsson3828
    @martingustafsson3828 5 лет назад

    This video and explanation is flawless!

  • @gustavomonte6672
    @gustavomonte6672 3 года назад

    Best video on callbacks hands down! +1
    Btw what happened to this guy? all of his videos dates back to 3~4 years ago D:

  • @mamun001
    @mamun001 4 месяца назад

    Brilliant! Thank you

  • @pierrefiore6933
    @pierrefiore6933 2 месяца назад

    no idea what language that is, but, if executing functions is base on how long it takes the function to run - this defies a fundamental building block of programming - SEQUENCE!

  • @JohannSuarez
    @JohannSuarez 3 года назад

    Simple, and concise. Very good explanation!

  • @sclim6726
    @sclim6726 6 лет назад +8

    is AddUser() and GetUser() running sequential order although Adduser() takes longer than GetUser()?...is above explanation based on the assumption that both method run at different thread?

    • @ws406
      @ws406 5 лет назад +1

      @Optimus27 I think the trick here is the setTimeOut() function. As soon as it is called, it is considered that the function is executed. Thus it moves on from addUser to getUser.

  • @ycekooler
    @ycekooler 7 лет назад

    Terrific explanation, clear as crystal. Great example of how this could be useful too.

  • @boiledleche2597
    @boiledleche2597 2 года назад

    Best teacher hands down

  • @zapxcero
    @zapxcero 2 года назад

    god-tier level of explanation here

  • @rp962
    @rp962 6 лет назад

    Best ever demo.....vow. You compelled me to hit the subscribe.

  • @Pravasith
    @Pravasith 7 лет назад

    Dude thanks a lot for this... That's how you explain stuff. Great. Thanks. I really had a very hard time understanding this until this tutorial

  • @teechin373
    @teechin373 3 года назад

    Thanks so much for the clear and concise tutorial!

  • @EyeIn_The_Sky
    @EyeIn_The_Sky 3 года назад

    Oh my, this explanation must be special, For a moment I almost understood callbacks. Trust .e when I say that is an epic achievement. Gonna watch ot again and try it so ot sinks in. I always get thrown by the non intuitive order of execution in the syntax

  • @yomistah
    @yomistah 7 лет назад

    Best explanation I've watched! Thanks so much!

  • @davidacosta6383
    @davidacosta6383 4 года назад +1

    BTW, what font are you using there?

    • @codekits7759
      @codekits7759  4 года назад +1

      The font in vim is called Terminus it’s really great

    • @davidacosta6383
      @davidacosta6383 4 года назад

      @@codekits7759 Thank you! I was looking for long time, closest was unicode.

  • @vivicemk
    @vivicemk 5 лет назад +1

    Well explained.....will remember this for life......great job man......bless you :)

  • @artate
    @artate Год назад

    Perfect explanation! Very easy to understand.

  • @SpiritsBB
    @SpiritsBB 7 лет назад +13

    Great explanation, what's with the visual effect at 4:20? Is that exclusive to JS editor?

    • @Dolvid
      @Dolvid 7 лет назад +2

      I think it must be this Atom editor plugin: atom.io/packages/activate-power-mode

  • @bertolucci1985
    @bertolucci1985 7 лет назад

    Easy to catch callbacks now. Thanks.