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).
@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.
@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
@nithin27313 ай бұрын
Hey bro actually my cousin name is immaculate now only I get the meaning of immaculate 😅 uuff
@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.
@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!
@karimmaged50242 жыл бұрын
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-io2 жыл бұрын
Of course I see your comment :) I have no plans to stop posting videos. Thank you for taking the time to write.
@TommyChristАй бұрын
I am 3 weeks in, into a Software Development In JS Bootcamp, and I find your content really helpful!!!
@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.
@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
@prince59222 ай бұрын
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-io2 ай бұрын
Thanks I'm so glad. I'm a one-man show and spend a lot of time on my production.
@ColorCode-io2 ай бұрын
Thanks I'm so glad. I'm a one-man show and spend a lot of time on my production.
@viorelmnk3 жыл бұрын
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-io3 жыл бұрын
Thank you. Glad you found it useful.
@averageguys_sa2 жыл бұрын
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-io2 жыл бұрын
Thanks and good luck with your studies!
@Speedhaak3 жыл бұрын
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-io3 жыл бұрын
Haha I hear you!
@Trolleger5 ай бұрын
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-io5 ай бұрын
Excellent
@otabekkadirov25782 жыл бұрын
This is a great explanation, thank you Sina. You are doing a great job, so please don't stop.
@ColorCode-io Жыл бұрын
👍
@crassProgrammer5 ай бұрын
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-io5 ай бұрын
Thanks
@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.
@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.
@userl-mo4sl2 ай бұрын
I couldn't stay focused long ,cause I was inspired by the English you speak ,afarin lezat bordam.Best regards.Neda
@ColorCode-ioАй бұрын
🙏
@SahilPatel-zn3lo2 жыл бұрын
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-io2 жыл бұрын
You're very welcome!
@RunEdgarRun2 жыл бұрын
Video Quality is really top notch! First thing I noticed, now to learn
@ColorCode-io2 жыл бұрын
Thank you. Good luck!
@BigSmoke-r9w10 ай бұрын
Good fellas ❤ I just watched it awhile ago, what a coincidence!
@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????
@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.
@sbvforworld42907 ай бұрын
Would love to have more and regular videos from you. Because The Channel is A CLASSIC .
@ColorCode-io6 ай бұрын
Working on it!
@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.
@justingarner54253 жыл бұрын
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-io3 жыл бұрын
You’re welcome :)
@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
@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!
@psycodeveloper90013 жыл бұрын
Why the hell don't you have more subscribers?? Your content is soo good... Loved it. Subscribing
@ColorCode-io3 жыл бұрын
Thanks for subbing!
@elielberra2867 Жыл бұрын
All your videos are incredible useful, and super easy to understand! Thank you so much :)
@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
@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
@brunog276610 ай бұрын
Yeah, I'm a Brazilian guy and i really liked this vídeo, thanks a lot!
@videoklubi2 жыл бұрын
The best explanation ever. Plus, a really good vibe.
@ColorCode-io2 жыл бұрын
🕺🏻
@Looneytune2 жыл бұрын
You guys deserve way more attention.
@ColorCode-io2 жыл бұрын
Thanks LooneyTune. Great name by the way 👍
@mackenkie2 жыл бұрын
great production quality and explanation! Made it easier to grasp.
@ColorCode-io2 жыл бұрын
Thanks! Glad to hear it
@anithadharaneedharan6758 Жыл бұрын
wow .. That was a perfect video which was totally engaging and crystal clear.
@ColorCode-io Жыл бұрын
Glad it was helpful!
@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-io2 жыл бұрын
Thanks! No plans to stop any time 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
@MohyDev2 жыл бұрын
Loving this series, PLEASE DO MORE!
@ColorCode-io2 жыл бұрын
A lot more coming next month
@hrahman31233 жыл бұрын
Welcome back!
@ColorCode-io3 жыл бұрын
Good to be back :)
@leonnorlazami23042 жыл бұрын
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.
@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.
@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!
@scottbartlett67852 жыл бұрын
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-io2 жыл бұрын
You’re speaking my language. Love lofi beats when coding 🎧
@dennisa64493 жыл бұрын
Crazy good quality! Keep it up mate
@ColorCode-io3 жыл бұрын
Appreciate it!
@jasonlago5129 Жыл бұрын
Youre the most underrated youtuber on the youtubes
@ColorCode-io Жыл бұрын
Underrated comment! Thank you
@asauu47452 жыл бұрын
guy deserves more subs!
@ColorCode-io2 жыл бұрын
Ty!
@Danny-wu5ct Жыл бұрын
THIS content is better than my bootcamp's content
@ColorCode-io Жыл бұрын
Glad to hear it
@techbro30852 жыл бұрын
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.
@fatahbe7667 Жыл бұрын
Best channel: it was very good Sina
@jatilyadav40002 жыл бұрын
Amazing and Informative as always .......Good luck
@ColorCode-io2 жыл бұрын
Thanks!
@dev-vf5fm8 ай бұрын
this is a god-tier tutorial
@Pareshbpatel Жыл бұрын
The essentials of Higher Order Functions in JavaScript; so succinctly explained. Thanks, Sina {2023-06-21}
@dev-vf5fm8 ай бұрын
This is a god-tier tutorial👏
@kemekenneth Жыл бұрын
Love the animations/transitions
@nemanjakaran87992 жыл бұрын
Very concise, and very well explained - good job and thanks!
@ColorCode-io2 жыл бұрын
👍
@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?
@LasTCursE698 ай бұрын
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
@raulnardone70622 жыл бұрын
Very clear and concise. Many thanks !
@ColorCode-io2 жыл бұрын
🙏
@chenzierkabrabam30602 жыл бұрын
The way you explain code is easier to understand. I request you to record a content about React stuff if possible. Happy coding.
@ColorCode-io2 жыл бұрын
Maybe soon
@anontar63167 ай бұрын
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-io6 ай бұрын
Thank you so much
@robertobenedit2 жыл бұрын
Nice to discover you sir! fantastic tutorial
@ColorCode-io2 жыл бұрын
Thank you
@blckndhues2 ай бұрын
my bf watched this and loved it. keep it up!
@ColorCode-ioАй бұрын
Thank you and your bf
@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.
@Evildragonfirez2 жыл бұрын
Awesome Goodfellas reference
@ColorCode-io2 жыл бұрын
🇮🇹🇺🇸
@FranciscoJoseOrtegaDiaz6 ай бұрын
New subscriber here! Great explanation! ❤
@ColorCode-io6 ай бұрын
Thank you, and welcome aboard
@jetbob3092 жыл бұрын
You earned my sub! Thank you for this clear explanation
@ColorCode-io2 жыл бұрын
Awesome :)
@webdeveloper27692 жыл бұрын
he deserves 1 million subscribers
@ColorCode-io2 жыл бұрын
Soon :)
@ivandedic38572 жыл бұрын
best explanation ever
@xv3lito3783 жыл бұрын
Great video! Very helpful. Also, I like your taste in films. Dark Knight and Goodfellas are great. ;)
@ColorCode-io3 жыл бұрын
Haha thanks!
@Coding1on17 ай бұрын
I like the way this video was performed!!!
@ColorCode-io6 ай бұрын
Thanks
@NexumCore5 ай бұрын
I just understood wtf is a function and now i know that functions can take other functions!
@TheReadWellPodcast2 жыл бұрын
I'm pretty sure you're the coolest programmer ever.
@ColorCode-io2 жыл бұрын
Haha I doubt it but thank you!
@BCAJ-FGC Жыл бұрын
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.
@chrisdietrich15333 жыл бұрын
Thanks for another great video!
@ColorCode-io3 жыл бұрын
You're welcome Chris
@danivermel2 жыл бұрын
Very well explained!
@fluffybubble68723 жыл бұрын
This channel is soooo underestimated
@ColorCode-io3 жыл бұрын
Thank you 🙏
@saeed86413 жыл бұрын
عاشقتم سینا . تو بهترین استاد جهانی بهت افتخار میکنم
@bob_bobsen2 жыл бұрын
nice clean background - great info on video
@ColorCode-io2 жыл бұрын
Thank you!
@azhardev5 ай бұрын
Great tut man. And who is Qoli?
@TheAcidMotion3 жыл бұрын
As usually, super informative episode. Funny too, just not sure how much joe pesci would agree there ;)
@ColorCode-io3 жыл бұрын
Haha thanks dude!
@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.
@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
@WineMusicWith Жыл бұрын
still in love with background music:))))
@joshua_hc_cr2 жыл бұрын
Like the new studio, or old I dunno 😅😂 Thanks for the explanation.
@ColorCode-io2 жыл бұрын
🙏
@charlesfulnecky19743 жыл бұрын
Higher order functions FTW. Very handy in combination with Redux-Observable with or without React 😁
@ColorCode-io3 жыл бұрын
Yes! The functional master has spoken!
@a-mok-youb2 жыл бұрын
Hi Sina, thank you for the lessons. I have benefited a lot from you. I have a question regarding SetTimeout()،Is it possible to change the display duration of a function from time to function so that it is displayed after initializing and executing the first function? Example : setTimeout(function(),2000); to: setTimeout(function2(),function1()); I hope you get the idea،Thank you, Sina.
@ColorCode-io Жыл бұрын
As long as function1 returns an integer I don’t see why not.
@genesipes85322 жыл бұрын
Awesome show!
@ColorCode-io2 жыл бұрын
Thank you
@ludwigvillalba18862 жыл бұрын
Thanks for sharing!
@ColorCode-io Жыл бұрын
Thanks for watching!
@tushar207 Жыл бұрын
God level stuff!
@ColorCode-io Жыл бұрын
God level comment
@tushar207 Жыл бұрын
Thanks “STEVE”
@dan110024 Жыл бұрын
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.
@itsminchul2 жыл бұрын
finally someone i can understand
@ColorCode-io2 жыл бұрын
🙏
@Aziz-kw6ct Жыл бұрын
Great video, thnx for such content
@devesh21 Жыл бұрын
Loved it ❣️
@Rocker0jeda Жыл бұрын
Why so serious 😂😂😂, thank you for ur videos it helped me alooot.