r/learnjavascript • • Mar 15 '21

JavaScript objects explained the visual way

https://youtube.com/watch?v=BRSg22VacUA&feature=share
243 Upvotes

26 comments sorted by

19

u/[deleted] Mar 15 '21

hey dude, i'm a visual learner and this type of teaching is awesome, if you could do more topics such as recursion and other programming topics would be very good

14

u/3dCodeWorld Mar 15 '21

Thanks. I do have quite a lot of material prepared, including recursion, but recording these things does take time, so it will be a while.

10

u/locomocopoco Mar 15 '21

Keep it up. This is good.

5

u/3dCodeWorld Mar 15 '21

Thank you. Much appreciated.

10

u/[deleted] Mar 15 '21

I love it, this is what I called a gift of heaven.

3

u/Emandreea Mar 15 '21

I gave up coding 6 months ago... This, this makes me want to start again. Very well explained. Thank you!

8

u/3dCodeWorld Mar 15 '21

Don't give up coding. The issue with coding is that there are layers upon layers of stuff to wrap you head around and you just have to start from the basics and make sure to really understand them before you move on. Thanks for the kind words.

1

u/Emandreea Mar 15 '21

Sadly I did gave up on my apprenticeship 6 Months ago. Was in a company working for an ERP System. We used Perl for programming. Worked for 1 year and six months as apprentice, and felt disappointed on myself the last few months there, cause I didn't feel like I was evolving at their pace. They're nice guys, only I felt like I wasn't helping enough.

3

u/[deleted] Mar 15 '21

the good old imposter syndrome, every programmer has it and it's what makes most people quit

2

u/epic_gamer_4268 Mar 15 '21

when the imposter is sus!

1

u/Emandreea Mar 15 '21

Even the Senior ones?

2

u/ggcadc Mar 16 '21

Yes, even us

1

u/Emandreea Mar 16 '21

How was for you the beginning of this journey, becoming a developer?

4

u/ggcadc Mar 16 '21

I came from a completely different industry and self taught. It’s really hard starting out because you don’t know what you don’t know. You also don’t know what others don’t know.

As they say, it doesn’t get easier, you just get better. When you learn that everyone has different roots and knowledge gaps, it feels a little less overwhelming

3

u/[deleted] Mar 16 '21

You just described me, its extremely difficult for us who come from different background and are self taught because we always have that insecurity that reminds us "i wish i had a cs degree" it would be much easier

1

u/Emandreea Mar 16 '21

Thank you for your answer. It means a lot to me.

4

u/[deleted] Mar 15 '21

Thank you!

1

u/SandHK Mar 16 '21

thanks for the video. Using you example of hours and rate, what is the benefit of objects over arrays?

1

u/3dCodeWorld Mar 17 '21

Sorry... missed your comment.

Arrays are ordered, so you should use them when this is useful. You can iterate over them using a for look, for example.

In this particular example, this is not something that we would want to do. If we want to place the function in an array, we will have to refer to the values based on their index [0, 1, etc.]. There will be a big problem if we ever decide to add an additional key-value pair or change anything in the structure of the array once we have done that. Using an object, on the other hand, will be perfectly suited for the task. Hopefully this is making sense.

1

u/bakenmake Mar 16 '21

This is great work! The examples you give are amazing and concise. One of the best coding videos I’ve ever watched and I’ve watched thousands. Should be one of the first videos anyone watches.

I repeat...THIS VIDEO SHOULD BE ONE OF THE FIRST VIDEOS YOU WATCH IF YOU ARE LOOKING TO START OR RE-LEARN CODING.

The comparisons/examples you give will make it “click” for most regardless of whether they come from a business or technical side.

I think simple examples like the bedroom/kitchen and cabinet/drawers will remove the intimidation factor for many. KISS implemented to perfection.

My only suggestion would be to give a side-by-side comparison of what the corresponding code would look like. In other words, show the user what it looks like when they store their cutlery/silverware in the bedroom as opposed to the kitchen.

Show them the incorrect/sloppy code versus the clean/correct way of doing things. That would probably make your videos the best resources around.

Best of luck moving forward! Look forward to checking out the full video and the rest of your channel!

Also, my apologies if you already do any of these things I’ve suggested. Have only watched this small clip and wanted to provide you with some quick (what was intended to be) feedback.

2

u/3dCodeWorld Mar 16 '21

Thanks for the detailed feedback, the support, and the good suggestions.

This video is a part of a series of tutorials, so the videos that will follow will have code examples. I will be uploading these eventually.

2

u/millennium_hawkk Mar 16 '21

Yeah show the code! lol nah, but good input to a great instructional video.

1

u/misslyss231 Mar 15 '21

This. My ADD visual learning brain loves this. Thank you so much. 💜💜

1

u/yb206 Mar 16 '21

Amazing! Consider me SUB'D!