The hardest JavaScript array method!

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

Coding in Public

Coding in Public

Күн бұрын

Пікірлер: 44
@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!
Reduce: Mother of all Javascript Array Methods? (Part 5)
23:52
Jack Herrington
Рет қаралды 16 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 494 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 904 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 442 М.
Bento Grid | Frontend Mentor Challenge (HTML & CSS)
23:28
edsHTML
Рет қаралды 4,7 М.
All 33 JavaScript Array Methods In One Video
51:11
Code Explained
Рет қаралды 36 М.
Стыдные вопросы про Китай / вДудь
3:07:50
вДудь
Рет қаралды 2,8 МЛН
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 909 М.
Coding reduce from scratch in vanilla JavaScript
25:23
Fun Fun Function
Рет қаралды 11 М.
Custom Array Sorts in JavaScript
8:01
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 18 М.
Everything you need to know about the Popover API
9:06
Coding in Public
Рет қаралды 3,5 М.