Episode 8: Higher Order Functions - JavaScript Tutorial 💻🎉
@simplesolutions2893 жыл бұрын
what IDE do you use for these videos?
@ColorCode-io2 жыл бұрын
@@simplesolutions289 Chrome DevTools
@caribbeanman33792 жыл бұрын
4:45 BTW, I remember seeing on a JavaScript video that it's bad practice to use array notation to get a particular character from a string like you've done here with "n[0]". I don't remember the details of why it's bad. But it was suggested that it's better to use one of the string functions like n.slice(0,1) or n.charAt(0).
@camcairns25842 жыл бұрын
Sina, just a note of appreciation - your content and presentation are immaculate. You are one of the few educators who can employ humor so it contributes rather than detracts.
@ColorCode-io2 жыл бұрын
Thank you so much
@nithin2731Ай бұрын
Hey bro actually my cousin name is immaculate now only I get the meaning of immaculate 😅 uuff
@catbros4life3 жыл бұрын
I don't understand why you don't have a lot more subscribers. I have went through several videos and found them very useful .
@ColorCode-io3 жыл бұрын
Thank you :)
@CondeAlberto2 жыл бұрын
He is good indeed.
@Yawnz23 жыл бұрын
Currently 8 weeks into a web development bootcamp and i'm extremely lost....your videos are really helping me out man thank you!
@ColorCode-io3 жыл бұрын
That's awesome to hear! Good luck.
@prince592219 күн бұрын
Sina whoever chooses your music, please give him a raise. I have watched your videos so much that I can tell what topic it is based on the intro or background music.
@ColorCode-io18 күн бұрын
Thanks I'm so glad. I'm a one-man show and spend a lot of time on my production.
@ColorCode-io18 күн бұрын
Thanks I'm so glad. I'm a one-man show and spend a lot of time on my production.
@aleclloydprobert68973 жыл бұрын
This series is very well done, and extremely clear and useful. Can't wait for the episode on closures.
@ColorCode-io3 жыл бұрын
Thank you Alec!
@karimmaged5024 Жыл бұрын
Not sure if you'll see this, it's a year old video. I'm currently learning web development and your videos are one of the greatest resources I found. You deliver the info in a light yet effective way. Hopefully you won't give up on this channel and would continue publishing those awsome videos.
@ColorCode-io Жыл бұрын
Of course I see your comment :) I have no plans to stop posting videos. Thank you for taking the time to write.
@lloydchan96063 жыл бұрын
these edits are so clean and entertaining, i wish more people saw you
@ColorCode-io3 жыл бұрын
I appreciate that
@riteeshpai23693 жыл бұрын
I wasnt knowing for months like what it is to use this keyword with arrow functions.I legit didnt understand it.But now seeing your explaination made it all clear to me.You are a gem.
@ColorCode-io3 жыл бұрын
Thank you. Glad it helped.
@averageguys_sa Жыл бұрын
I'm studying to be a full stack developer, based in South Africa. I've seen a lot of webdev tutorial videos online but I'm yet to see someone who does it better! 👌
@ColorCode-io Жыл бұрын
Thanks and good luck with your studies!
@longingbydesign3 жыл бұрын
I really liked the old setup with the window ALOT better. Also your voice sounded better in the old setup. In the new one you clearly hear the resounding from the walls.
@ColorCode-io3 жыл бұрын
Unfortunately I won't have access to the old studio anymore :( Good catch on the audio. The space is so new and the sound acoustics haven't been installed yet.
@Speedhaak2 жыл бұрын
Appreciate the bite sized approach to this content. Sometimes when you are researching something and you're staring down the barrel of a 45 minute video it can be defeating. Cheers :)
@ColorCode-io2 жыл бұрын
Haha I hear you!
@Trolleger3 ай бұрын
Sir, your content has been a great help for me learning coding and reviewing coding (I go to coding class) You incorparate humor actually good, you have good visuals, mic quality and just everything is Immaculate. Thank you
@ColorCode-io2 ай бұрын
Excellent
@BigSmoke-r9w8 ай бұрын
Good fellas ❤ I just watched it awhile ago, what a coincidence!
@otabekkadirov2578 Жыл бұрын
This is a great explanation, thank you Sina. You are doing a great job, so please don't stop.
@ColorCode-io Жыл бұрын
👍
@brunog27668 ай бұрын
Yeah, I'm a Brazilian guy and i really liked this vídeo, thanks a lot!
@jasonlago5129 Жыл бұрын
Youre the most underrated youtuber on the youtubes
@ColorCode-io Жыл бұрын
Underrated comment! Thank you
@Looneytune2 жыл бұрын
You guys deserve way more attention.
@ColorCode-io2 жыл бұрын
Thanks LooneyTune. Great name by the way 👍
@userl-mo4sl3 күн бұрын
I couldn't stay focused long ,cause I was inspired by the English you speak ,afarin lezat bordam.Best regards.Neda
@crassProgrammer3 ай бұрын
This is the best series on JS. You have explained very well. I have watched almost all JS videos & I am really disappointed why you have lesser views & subscribers. ❤ from me!!!
@ColorCode-io2 ай бұрын
Thanks
@Ratchet2022 Жыл бұрын
Wow! This really takes away the mystique of higher order functions for me after years of programming in TS. How they work is obvious to me now, hence this video did its job. I just never really gripped how functions sent in as arguments run the code for each element in a collection, but now seeing you write these higher order functions, I see how they do the processing in a black box just like they would for any other primitive argument type. Thank you!
@ColorCode-io Жыл бұрын
Thanks for a great comment! Glad the video was helpful for you.
@UncleNabs2 жыл бұрын
Video Quality is really top notch! First thing I noticed, now to learn
@ColorCode-io2 жыл бұрын
Thank you. Good luck!
@viorelmnk2 жыл бұрын
i like the way you explain in detail and with examples and the way the videos are made, very modern, clean and each topic of the videos gets a "separate" part of the video, making it easy for us viewers.
@ColorCode-io2 жыл бұрын
Thank you. Glad you found it useful.
@SofiaLo-23 Жыл бұрын
This is the first video I watch from your channel and I have to say it is really good. The animations, explanation and everything. Thank you so much
@ColorCode-io Жыл бұрын
Thanks Sofia
@Danny-wu5ct Жыл бұрын
THIS content is better than my bootcamp's content
@ColorCode-io Жыл бұрын
Glad to hear it
@georgetuccio60532 жыл бұрын
Really enjoying the 10 part series. Just finished an engagement and starting to interview for next engagement and studying like crazy to prepare for all those interview questions. Yes, prototype and classes came up in one interview and I stumbled all over the answers. I'm from New York City, enjoyed seeing the city out of your window. Miss it. Moved to Tampa 5 years ago and looking forward to moving back.
@ColorCode-io2 жыл бұрын
I miss my view too, although I'm still in NYC. Best of luck to you on your interviews. Let me know if I can help.
@Evildragonfirez2 жыл бұрын
Awesome Goodfellas reference
@ColorCode-io2 жыл бұрын
🇮🇹🇺🇸
@Pareshbpatel Жыл бұрын
The essentials of Higher Order Functions in JavaScript; so succinctly explained. Thanks, Sina {2023-06-21}
@brolino112 жыл бұрын
How the hell does this video have less than 10k views? You're sooo good at explaining thi stuff, you deserve way more recognition. And btw, I'm subbing!
@ColorCode-io2 жыл бұрын
Thanks for subbing!
@DivineKelvin-km9vb Жыл бұрын
Like howwww????
@MohyDev2 жыл бұрын
Loving this series, PLEASE DO MORE!
@ColorCode-io2 жыл бұрын
A lot more coming next month
@videoklubi2 жыл бұрын
The best explanation ever. Plus, a really good vibe.
@ColorCode-io2 жыл бұрын
🕺🏻
@sbvforworld42905 ай бұрын
Would love to have more and regular videos from you. Because The Channel is A CLASSIC .
@ColorCode-io4 ай бұрын
Working on it!
@hrahman31233 жыл бұрын
Welcome back!
@ColorCode-io3 жыл бұрын
Good to be back :)
@scottbartlett6785 Жыл бұрын
Random but i definitely had "Coffee shop radio 24/7 lofi hip hop beats" on while watching this and it made it even better. regardless, thank you for being eloquent and still throwing some jokes in.
@ColorCode-io Жыл бұрын
You’re speaking my language. Love lofi beats when coding 🎧
@dev-vf5fm6 ай бұрын
this is a god-tier tutorial
@asauu47452 жыл бұрын
guy deserves more subs!
@ColorCode-io2 жыл бұрын
Ty!
@SahilPatel-zn3lo Жыл бұрын
I really love the way you connect current concepts to previously taught concepts and many different ways to do the same thing. really man hatf off to you and well yeah merry christmas to you
@ColorCode-io Жыл бұрын
You're very welcome!
@pedrolelis78542 жыл бұрын
I just found your content and this is the first video I watch! Actually I agree with the last comment... why don't you have more subs!? Thanks for the amazing explanation! Quite easy to understand! Hugs from Brazil!
@ColorCode-io2 жыл бұрын
Welcome aboard! Sending you hugs back to Brazil from New York City.
@syedaun54103 жыл бұрын
Please do a series on basics of React or React Native. But I guess then the audience will be very limited as you are still growing, but your work deserves a lot more views, fantastic work!!!
@ColorCode-io3 жыл бұрын
Great suggestion
@bmehder2 жыл бұрын
I like the new format with no code typing. I did not even notice it until you said something about it. I think you might be on to something here.
@paulsisson89442 жыл бұрын
Great work brother! Keep it up. Us newbs really appreciate this stuff, especially when it isn't ultra-dry/tedious like a lot of these videos tend to get.
@ColorCode-io2 жыл бұрын
Thank you
@psycodeveloper90013 жыл бұрын
Why the hell don't you have more subscribers?? Your content is soo good... Loved it. Subscribing
@ColorCode-io3 жыл бұрын
Thanks for subbing!
@anithadharaneedharan6758 Жыл бұрын
wow .. That was a perfect video which was totally engaging and crystal clear.
@ColorCode-io Жыл бұрын
Glad it was helpful!
@kemekenneth Жыл бұрын
Love the animations/transitions
@mackenkie2 жыл бұрын
great production quality and explanation! Made it easier to grasp.
@ColorCode-io2 жыл бұрын
Thanks! Glad to hear it
@saeed86413 жыл бұрын
عاشقتم سینا . تو بهترین استاد جهانی بهت افتخار میکنم
@dennisa64493 жыл бұрын
Crazy good quality! Keep it up mate
@ColorCode-io3 жыл бұрын
Appreciate it!
@kylemyers5802 Жыл бұрын
This was extremely helpful, the examples were awesome and the way you explained them made them all click for me. Thanks!
@ColorCode-io Жыл бұрын
Great to hear!
@justingarner54252 жыл бұрын
great video I had to subscribe because the production quality was so good thank you so much for a tutorial that a human can understand
@ColorCode-io2 жыл бұрын
You’re welcome :)
@dev-vf5fm6 ай бұрын
This is a god-tier tutorial👏
@ivandedic38572 жыл бұрын
best explanation ever
@webdeveloper27692 жыл бұрын
he deserves 1 million subscribers
@ColorCode-io2 жыл бұрын
Soon :)
@ibrahim_youssef_13.12 Жыл бұрын
your voice beautiful , your joking is funny , your explanation is great, every time I see you - even in something I knew before - I benefit from new and very useful information and some funny as well😅 , Thank you Sina❤
@ColorCode-io Жыл бұрын
Thank you
@mohithp87002 жыл бұрын
It was really useful I was doing challenges in leetcode and there are many challenges related to HOF You earned a subscriber
@ColorCode-io2 жыл бұрын
Awesome, thank you!
@fatahbe7667 Жыл бұрын
Best channel: it was very good Sina
@raulnardone7062 Жыл бұрын
Very clear and concise. Many thanks !
@ColorCode-io Жыл бұрын
🙏
@TheReadWellPodcast2 жыл бұрын
I'm pretty sure you're the coolest programmer ever.
@ColorCode-io2 жыл бұрын
Haha I doubt it but thank you!
@techbro3085 Жыл бұрын
This Channel is like Oasis in the big desert called JS🙃. Just a suggestion sir, along with youtube reels, you can post your linkedin account also here to get more audience attention.
@elielberra286710 ай бұрын
All your videos are incredible useful, and super easy to understand! Thank you so much :)
@blckndhues2 күн бұрын
my bf watched this and loved it. keep it up!
@vladislavamarkova83793 жыл бұрын
Another useful, informative and so nice to follow video from the sequence! I like your new studio, it looks, how to say, open and brighter, miss a little bit the live coding. I am looking forward for the next "Closures" video. Wish you all good! : )
@ColorCode-io3 жыл бұрын
Closures video posted today: kzbin.info/www/bejne/l3nVp5xor7mfl7c
@LasTCursE696 ай бұрын
I mean I get what you are trying to explain, but at 6:00 you can just do this instead? (without iterating 3 times and creating separate lists) for (let i = 0; i < names.length; i++) { if (names[i][0] !== 'Q' && names[i].length >= 5) { the jquery bit } } Same deal with 8:20, you can just make a single function and pass the pixels as an argument
@leonnorlazami2304 Жыл бұрын
You got yourself a new subscriber! I'm having a hard time with functions and this somehow helped me understand ( still need more practice tho, any suggestions?)
@ColorCode-io Жыл бұрын
Build build build. That's the best way to learn.
@jatilyadav4000 Жыл бұрын
Amazing and Informative as always .......Good luck
@ColorCode-io Жыл бұрын
Thanks!
@dedmanraizd2 жыл бұрын
I've run into many tutorials describing what callbacks are but don't go into the specifics of why it's needed. I've always struggled to find the value of a callback; for instance, why do functions like setTimeout(), array methods, addEventListeners, need a function as a parameter instead of using primitive types to tell it what to do? Thanks so much for explaining this. Cheers!
@ColorCode-io2 жыл бұрын
Glad it helped!
@dedmanraizd2 жыл бұрын
@@ColorCode-io Just to clarify, if a function by definition is what something does, how should we see primitive types as?
@Jok3rundead2 жыл бұрын
Love your videos man! You explain things very clearly and concisely while also keeping it fun at times with your jokes. Brilliant channel please keep it going until the end of time :)
@ColorCode-io Жыл бұрын
Thanks! No plans to stop any time soon :)
@fluffybubble68722 жыл бұрын
This channel is soooo underestimated
@ColorCode-io2 жыл бұрын
Thank you 🙏
@robertobenedit2 жыл бұрын
Nice to discover you sir! fantastic tutorial
@ColorCode-io2 жыл бұрын
Thank you
@nemanjakaran87992 жыл бұрын
Very concise, and very well explained - good job and thanks!
@ColorCode-io2 жыл бұрын
👍
@danivermel2 жыл бұрын
Very well explained!
@Coding1on14 ай бұрын
I like the way this video was performed!!!
@ColorCode-io4 ай бұрын
Thanks
@WineMusicWith11 ай бұрын
still in love with background music:))))
@anontar63165 ай бұрын
Just stumbled my way here.. was looking for a high order function deff and was prepared for a boring sleepy video... but boy was I wrong. Btw... I will look over your playlist... but I think you should create an entire course... if you can and have the time of course
@ColorCode-io4 ай бұрын
Thank you so much
@FranciscoJoseOrtegaDiaz3 ай бұрын
New subscriber here! Great explanation! ❤
@ColorCode-io3 ай бұрын
Thank you, and welcome aboard
@davidmmadden3 жыл бұрын
Great video. New pre-created text is easy to follow but I much prefer the live coding because it shows examples of how you think through things. Also miss the NYC window, it made it feel informal and comfortable, but I'm sure you had practical reasons for the shift.
@ColorCode-io3 жыл бұрын
Thanks Dave. I’m actually just a block away from the old studio but unfortunately I had to move on. Thanks for the feedback.
@chrisdietrich15333 жыл бұрын
Thanks for another great video!
@ColorCode-io3 жыл бұрын
You're welcome Chris
@NexumCore3 ай бұрын
I just understood wtf is a function and now i know that functions can take other functions!
@jetbob3092 жыл бұрын
You earned my sub! Thank you for this clear explanation
@ColorCode-io2 жыл бұрын
Awesome :)
@alialshaches665811 ай бұрын
i love this dudes videos lol , good shit big dog
@andrew.schaeffer4032 Жыл бұрын
Great videos thank you. Just one thing I think could make them better would be if they were shorter/more concise.
@bob_bobsen2 жыл бұрын
nice clean background - great info on video
@ColorCode-io2 жыл бұрын
Thank you!
@chenzierkabrabam3060 Жыл бұрын
The way you explain code is easier to understand. I request you to record a content about React stuff if possible. Happy coding.
@ColorCode-io Жыл бұрын
Maybe soon
@charlesfulnecky19743 жыл бұрын
Higher order functions FTW. Very handy in combination with Redux-Observable with or without React 😁
@ColorCode-io3 жыл бұрын
Yes! The functional master has spoken!
@ludwigvillalba1886 Жыл бұрын
Thanks for sharing!
@ColorCode-io Жыл бұрын
Thanks for watching!
@dan11002410 ай бұрын
With the makeClickHandler function, why return a function? Why not just have document.body.style.fontSize within makeClickHandler on its own? I'm sure there's a reason but I'm not able to see it at the moment.
@Vikram_Naik Жыл бұрын
ThankYou sir, May i know how to prepare those stunning animated ppt/slides...
@ColorCode-io Жыл бұрын
I manually create the animations myself in Final Cut Pro and Apple Motion
@genesipes85322 жыл бұрын
Awesome show!
@ColorCode-io2 жыл бұрын
Thank you
@xv3lito3783 жыл бұрын
Great video! Very helpful. Also, I like your taste in films. Dark Knight and Goodfellas are great. ;)
@ColorCode-io3 жыл бұрын
Haha thanks!
@mdshoharabpk1126 Жыл бұрын
thanks for your tutorial.
@ColorCode-io Жыл бұрын
👍
@itsminchul2 жыл бұрын
finally someone i can understand
@ColorCode-io2 жыл бұрын
🙏
@zero110102 жыл бұрын
I don’t understand most usages of higher order functions. Would love some help! There are separate issues. The example at 8:50 with a function that returns a function does not make sense at all. Why not just create a function that does the thing while taking in that parameter? What do you gain out of writing a function that returns an anonymous function that does the work instead of writing a function that does the thing in the first place? The issue I have with map and filter and the rest is separate. In specific usages they’re great. I see them chained often and this drives me crazy because of the inefficiency. Each loops over every element. Each creates a separate array which itself takes time and space. Instead of chaining multiple together (which seems to be common) I don’t understand why people don’t use a single loop with the logic so you only iterate over each element once and only need to create a single array to return in the process. For usages where you only use one or can only possibly iterate over a small number the inefficiency seems trivial. I’ve seen this done over tens of thousands of items and on a backend writing something twice as efficient feels like the way to go cutting down on database drag. Chaining multiple together feels like writing several separate loops each creating a bunch of data that only gets used to write another loop to create more data to write another loop …. Or you could write a single loop! Instead of taking in a function as a parameter, why not use scope to gain access to a function? What is the benefit to doing it this other way? This seems common with callbacks. Most of the time it seems more direct to just write the functionality so it’s available in scope.
@joshua_hc_cr2 жыл бұрын
Like the new studio, or old I dunno 😅😂 Thanks for the explanation.
@ColorCode-io2 жыл бұрын
🙏
@Uri.Sab. Жыл бұрын
Do you have testing code videos?
@azhardev3 ай бұрын
Great tut man. And who is Qoli?
@anandkumarnitrourkela74044 ай бұрын
respect from India
@suryatejaparvata2 жыл бұрын
@ColorCode-io2 жыл бұрын
👍
@gatorgrad Жыл бұрын
thanks for the video
@TheAcidMotion3 жыл бұрын
As usually, super informative episode. Funny too, just not sure how much joe pesci would agree there ;)
@ColorCode-io3 жыл бұрын
Haha thanks dude!
@mohammadmirzaei99412 жыл бұрын
عالی بود ایول
@ColorCode-io2 жыл бұрын
Merci
@weibinren922 жыл бұрын
Could you also explain in more detail function factories?