The hardest JavaScript array method!

  Рет қаралды 2,976

Coding in Public

Coding in Public

Күн бұрын

Пікірлер
@CodinginPublic
@CodinginPublic 2 жыл бұрын
You currently have nearly a 75% chance of winning a Quokka JS license if you donate just $1!!!! Let’s cure childhood cancer together! Details in description.
@semikolondev
@semikolondev 2 жыл бұрын
Your recap after coding the function is really, really well done. Your deconstruction of the loop and the steps by steps explication is on point! Not enough developer on youtube do it. Keep the great work mate!
@CodinginPublic
@CodinginPublic 2 жыл бұрын
🙏 glad it was a help! I find walking back through it helps me, too!
@zalodias123
@zalodias123 2 жыл бұрын
You explain concepts in a very concise, understandable way. Reduce was definitely something I was afraid of, but feeling more comfortable to use it with your videos. Thanks for that!
@CodinginPublic
@CodinginPublic 2 жыл бұрын
So glad to hear that! Thanks for saying something!
@101stDay
@101stDay 2 жыл бұрын
Fantastic as always, Chris!
@CodinginPublic
@CodinginPublic 2 жыл бұрын
Thanks, Neil!
@FromagioCristiano
@FromagioCristiano Жыл бұрын
Reduce is a powerful tool once you finally understand it. Tip: consider adding a pinned comment when sharing a related video (could also place that small video thumbnail/title combo somewhere in the video). Sometimes the video and shorts are posted apart of one another. I went to check the said tutorial video and didn't "find" it, because it was 8 months ago, but realized it only because I tried looking at this Shorts description (sadly it is really hidden on mobile interface). Can't really say about Shorts on desktop because I hide all of them on there. KZbin really should add that handy info/related content that appears on the corner of videos. But what can we expect, right? Lately they are actually inclined to do awful decisions. That's just a suggestion, your videos are clean and concise to the point, thank you for sharing it with us!
@CodinginPublic
@CodinginPublic Жыл бұрын
Great idea! Added! Thanks!
@Abhi_73
@Abhi_73 2 жыл бұрын
BROTHER, YOU ARE THE BEST!!! You oooh really helped me!! THANK YOU VERY MUCH!
@CodinginPublic
@CodinginPublic 2 жыл бұрын
👏 so glad it was a help! 🙌
@Abhi_73
@Abhi_73 2 жыл бұрын
@@CodinginPublic it's not written by me!!! And i don't know what Java is too... Is this a glitch?
@haikoerinkveld4242
@haikoerinkveld4242 2 жыл бұрын
Watching this because you're using the method in your new Astro video. Spend the whole evening wrapping my head around it... I thought i understand the reducer but just with simple numbers, but using it with arrays and objects is next level. really powerfull but also really confusing... atleast for me.
@CodinginPublic
@CodinginPublic 2 жыл бұрын
It IS confusing! It's just a hard thing to wrap your head around. I still have to look up the docs. I did a JavaScript challenge video on my channel recently giving some more practice examples. But just keep at it; you'll find it's especially useful when you need an object at the end or need to both filter and map through an array (because you can basically do both in the same loop using reduce).
@Snooperkingg
@Snooperkingg Жыл бұрын
i was struggling with reduce before i found this video ,then on 3rd exercise i was stuck 2 days but then at the end i got it very well step by step which is i consider very important so thank you for pushing me to learn what is happening and how
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad it was a help!
@abaydotdev
@abaydotdev Жыл бұрын
Crazy good explanation!
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was helpful!
@neontuts5637
@neontuts5637 2 жыл бұрын
Hey, Thanks Chris for making a detailed video on reduce array method. Now it's easy to solve codewars problems using this method. Like the sum of even numbers in the array. You explained it clearly Thanks once again 🙏
@CodinginPublic
@CodinginPublic 2 жыл бұрын
You’re welcome, Neon! Glad it was a help!
@sarveshpatil1741
@sarveshpatil1741 2 жыл бұрын
Super well explained.
@CodinginPublic
@CodinginPublic 2 жыл бұрын
Thanks for the kind words! Glad it was a help!
@MuhammadAdnan2.0
@MuhammadAdnan2.0 2 жыл бұрын
well explained,,,,,,
@CodinginPublic
@CodinginPublic 2 жыл бұрын
🙏 you’re welcome!
@MuhammadAdnan2.0
@MuhammadAdnan2.0 2 жыл бұрын
bro do more for reduce and filter in separate vdos of each function
@CodinginPublic
@CodinginPublic 2 жыл бұрын
I did do a challenge video here with some examples of both! kzbin.info/www/bejne/qKHbonyliZ1rpbM
@MuhammadAdnan2.0
@MuhammadAdnan2.0 2 жыл бұрын
@@CodinginPublic thanksssss
@jellyfish1772
@jellyfish1772 2 жыл бұрын
Plz tell me your vs codes theme
@CodinginPublic
@CodinginPublic 2 жыл бұрын
I _think_ this is Palenight Operator?
@jellyfish1772
@jellyfish1772 2 жыл бұрын
@@CodinginPublic thanks.love u bro
@Xamy-
@Xamy- 2 жыл бұрын
For us lazy mobile viewers, when teaching a new topic do you think it would be possible to throw up a definition/a summary of what the function does on screen for like 5 seconds in largeish font to read? 1st world problems I know
@Yusuf-ok5rk
@Yusuf-ok5rk 2 жыл бұрын
then we would see that part and leave the video, leading to the video having bad rep on algorithm's part. nearly everyone play to algorithm, some balance it with rly good content.
@Xamy-
@Xamy- 2 жыл бұрын
@@Yusuf-ok5rk hmmm then perhaps what we will be doing upfront to suck me in? Like mr Kevin Powell does
@CodinginPublic
@CodinginPublic 2 жыл бұрын
Ha-I'll consider it. I'm not sure I could make it into a concise sentence that's helpful. I try to zoom in enough for mobile viewers (I'm primarily a mobile viewer myself). Thanks for the feedback!
@CodinginPublic
@CodinginPublic 2 жыл бұрын
Yeah, I try not to think too much about algorithms and just make videos I'd watch. It's a never-ending spiral if you’ve always got an eye to an algorithm. But truthfully, I'm not sure I'd enjoy watching a video with a splash screen and dictionary definition. But I do think I could have done a better job setting up this intro, so I like the feedback all the same :)
@OnlyJavascript
@OnlyJavascript 2 жыл бұрын
Sorry, I am new to JS. Can someone explain me this:- in example 2, valueIfExists = acc[key] || 0; what does it return if it's already in there? thanks in advance.
@OnlyJavascript
@OnlyJavascript 2 жыл бұрын
@9:32
@CodinginPublic
@CodinginPublic 2 жыл бұрын
Sorry that wasn’t clear. If it’s already there, it returns the value that’s already present. Otherwise, it returns 0.
@CodinginPublic
@CodinginPublic 2 жыл бұрын
At least that’s what I’m assuming from memory and seeing what you wrote :)
@OnlyJavascript
@OnlyJavascript 2 жыл бұрын
@@CodinginPublic count of that key?
@CodinginPublic
@CodinginPublic 2 жыл бұрын
Yes, it’s current count value.
@tapank415
@tapank415 2 жыл бұрын
it is the least used array method for me.
@CodinginPublic
@CodinginPublic 2 жыл бұрын
Yeah, I think that's probably still the same for me, but I've been using it more and more lately and really started to enjoy it!
What's New in .NET 9 with Examples
25:02
Nick Chapsas
Рет қаралды 66 М.
Understanding Ownership in Rust
25:30
Let's Get Rusty
Рет қаралды 273 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
All 33 JavaScript Array Methods In One Video
51:11
Code Explained
Рет қаралды 36 М.
Reduce: Mother of all Javascript Array Methods? (Part 5)
23:52
Jack Herrington
Рет қаралды 16 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 218 М.
Astro Server Island Example: YouTube Videos
12:44
Coding in Public
Рет қаралды 3,9 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 845 М.
JSON Parser 100% From Scratch in Haskell (only 111 lines)
1:50:07
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
Custom Array Sorts in JavaScript
8:01
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 18 М.
ES6 Tutorial: Learn Modern JavaScript in 1 Hour
50:05
Programming with Mosh
Рет қаралды 1 МЛН
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 494 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН