With such explanations I really hope your number of subscribers increases dramatically. This was by far the best explanation I have seen on this topic. Keep doing what you're doing, you have a gift for teaching!
Great explanation! I am making some of Underscore library methods from scratch (for a bootcamp) and was stuck on _.once and _.memoize, but that helped me understand not only about caching but also to be able to do the _.once function, which has similar principles. Thanks!
subscribed! Thanks for the video. I will def check more of your videos! I still have a question, if we run the memoize function for two times, doesnt the catch get reassign as am empty obj again? Coz the first line of the code to make it an empty obj??Thanks in advance!!!
Very clear explanation and example!!! Super helpful!! Thank you so much!!!! I also watched your "debounce" video, also wonderful tutorial!! Btw, Do you think your playlist "Javascript" is for people who are learning Advanced JS? I want to learn Advanced JS since I finished basic tutorial and I wonder if the playlist is for me.
Great! Your'e welcome! Yes, that JavaScript playlist has some advanced topics. In particular, I'd check out the videos on the Comparator function, the Rest and Spread Operators, Reduce, and Hoisting. Cheers!
@@TheCodeCreative Thank you for your reply! I will finish your Javascript playlist!! Btw, do you have any recommended books to deepen our understanding for these JS concepts?
Hi, just wondering if you can make a video to relate this to React memoization and hooks, say useMemo and useCallback. I think that would be highly appreciated by a lot of us😁
I am a noob in JS. Can someone please explain the syntax of function that is getting returned from memoize. How do we have access to ...args and how does args get value from outside, why can't I console.log ...args as first line inside the memoize function. I really can't get my head around the return function syntax
Hi Tanzeem, the "memoize" function returns a function. So, if we invoke "memoize", we can assign its result(the function that gets returned) to a variable. Since that variable is now a function, we can invoke it and pass in an needed arguments. And we can use the "rest" parameter(...args) to gather up those arguments.
ruclips.net/channel/UCmOpHGj4JRWCdXhllVTZCVw
With such explanations I really hope your number of subscribers increases dramatically. This was by far the best explanation I have seen on this topic. Keep doing what you're doing, you have a gift for teaching!
Hi Clyde, glad to hear it. Thanks for the comment!
this video is so underrated !! good job bro cant be explained any better 👏👏👏
Glad you liked it!
Excellent explanation. The best i have seen on RUclips
Glad it was helpful!
🗣JOIN the Code Creative Facebook group! :
facebook.com/groups/1612600368887577
📖 Download my FREE "Google Search Secrets for Developers" Cheat Sheet:
store.thecodecreative.com/google-secrets-cheat-sheet
Can't get clear than this. Great job Gregg. 🙏
Hey Zameerbasha, thanks!
Great explanation! I am making some of Underscore library methods from scratch (for a bootcamp) and was stuck on _.once and _.memoize, but that helped me understand not only about caching but also to be able to do the _.once function, which has similar principles. Thanks!
That sounds like a great thing to do with the Underscore library 👍🏻 Glad this was helpful Nero. Thanks for watching!
Such a beautiful explanation, in-depth yet clear. Thanks!
Glad to hear, thanks for watching!
That was such a great explanation! Thanks 🙏
Thanks for watching Yusef!
Awesome explanation!!!!
Glad to hear it!
subscribed! Thanks for the video. I will def check more of your videos! I still have a question, if we run the memoize function for two times, doesnt the catch get reassign as am empty obj again? Coz the first line of the code to make it an empty obj??Thanks in advance!!!
Please bring more such concepts of js with implementation.
Really creative explanation
Glad you liked it
Very clear explanation and example!!! Super helpful!! Thank you so much!!!! I also watched your "debounce" video, also wonderful tutorial!! Btw, Do you think your playlist "Javascript" is for people who are learning Advanced JS? I want to learn Advanced JS since I finished basic tutorial and I wonder if the playlist is for me.
Great! Your'e welcome! Yes, that JavaScript playlist has some advanced topics. In particular, I'd check out the videos on the Comparator function, the Rest and Spread Operators, Reduce, and Hoisting. Cheers!
@@TheCodeCreative Thank you for your reply! I will finish your Javascript playlist!! Btw, do you have any recommended books to deepen our understanding for these JS concepts?
@@aya2222 Yes, check out Kyle Simpson's series "You Don't Know JS"!
@@TheCodeCreative thank you!! I will check it!!
@@aya2222 👍🏻
Excellent explanation. Subscribed.
Thanks Dane and thanks for watching!
Very well explained.
Thank you.
I have one question, if we are passing only one argument to the function why are using ...arg?
...arg allows the flexibility of passing several arguments. Only in this case are we passing only one argument. Hope this helps
@@lexarisa8418 Thank you.
Great explanation. In React there is a React. memo hook. Does this concept work behind the scene there?
Thanks Vikram!, Yes, useMemo works with the concept of memoization.
I only understood half of this, but damn was it cool
👍🏻👍🏻👍🏻
Hey, where is up with your font? the === and
Those are font ligatures for VSCode.
Hi, just wondering if you can make a video to relate this to React memoization and hooks, say useMemo and useCallback. I think that would be highly appreciated by a lot of us😁
Noticed some of your symbols look different? Are you using an extension to change this?
Those are fira code ligatures
@@TheCodeCreative cool. What is that? Also how do i get it?
@@IbraheemOmar-fn1ze Here it is: github.com/tonsky/FiraCode
LOVED IT
Great, thanks for watching!
if ...args is an array then how can we say cache[args] ?
Shouldn't we iterate over each one?
We don't have to iterate because if we store an array as the property on the object it will be coerced to a string.
Please make a video about browser devtools
Great idea. Anything in particular about the devtools?
@@TheCodeCreative The breakpoints seems difficult to me
@@Troy-ol5fk Gotcha. Yes, those can be confusing. Thanks for the suggestion!
You are using closure concept
Super Awesome +++++++++++++++++++++++
Thank you! Cheers!
I am a noob in JS. Can someone please explain the syntax of function that is getting returned from memoize. How do we have access to ...args and how does args get value from outside, why can't I console.log ...args as first line inside the memoize function. I really can't get my head around the return function syntax
Hi Tanzeem, the "memoize" function returns a function. So, if we invoke "memoize", we can assign its result(the function that gets returned) to a variable. Since that variable is now a function, we can invoke it and pass in an needed arguments. And we can use the "rest" parameter(...args) to gather up those arguments.
Also, here's a video explaining the Rest Parameter: ruclips.net/video/qla3bATsadw/видео.html
@@TheCodeCreative makes sense to me now.
@@tanzeemahmed8609 👍🏻
Why is the small number of subscribers here?
RUclips is a tough nut to crack! :-)
@@TheCodeCreative I hope your channel will be one of the leading dev solution hub after atmost a year. Keep teaching us sir. Thank you.
@@photontube Thanks! I appreciate it!