r/learnjavascript • u/tierrarucker • Jul 17 '20
Really struggling to learn and RETAIN JavaScript (JS fundamentals)
I don’t know what I’m doing wrong. I watch the videos, I try to code along. If I don’t understand something I keep trying to rewatch it/do it until I get it. But it’s just not clicking.
The worst part is not knowing what you don’t know. I’ve asked people for help and just trying to explain the issue is a problem itself sometimes. It doesn’t even need to be a specific problem, such as loops, but more learning to “think like a computer” and break each big thing down step by step into smaller, more manageable pieces but even when I do it’s still confusing. Idk how to better explain it.
This was supposed to be asking for help but it turned into a rant. Lol
Edit: fixed typos
47
Jul 17 '20
give your brain time, it needs to do some magic inside your head, don't overthink it
4
u/roserer Jul 17 '20
I know to a lot of people this answer can seem frustrating and dismissive. But this is 100% what it was for me. I know to those struggling to retain info, you'll probably want to be doing something proactive to do so. I was in the same position a few months ago. But what i learned was my brain just needed time to sit on the information.
I've learned an interesting technique as well to speed up the process. Its hard to describe what i do. The best way to describe it is a cooking analogy (i think in visual analogies, sorry if this doesn't help) but i kind of let the info simmer in my head. When i ingest information that doesn't click right away i try to "put it in my brain pot" and "turn the heat to medium high" or i let it tumble around in my brain a bit, kind of look at it in different angles ("cooking it evenly"). I keep focused on the problem ("keeping the pot of info on an even heat") until something clicks in my brain.
Idk if that will help at all, its just what worked for me and im bad at explaining things simply.
2
u/tierrarucker Jan 01 '21
No, i get exactly what you’re saying. Sometimes you have to let your brain work over the information while you go do something else and give your brain time to understand it! Thanks!
9
1
u/tierrarucker Jan 01 '21
Thanks! I like the magic reference! Very helpful! Makes me feel like a witch/wizard! Lol
13
Jul 17 '20
I might be able to help if you want to pm me. I use to tutor programming and everyone I tutored found it helpful to my knowledge.
Also, this is completely free, I am not trying to sell anything. I am only gonna offer some personalized advice based on what issues you are having but I don't have the time to tutor anymore.
1
13
u/yadoya Jul 17 '20
I think you are trying to learn MORE, not BETTER.
I had the same issue until I took Anthony Alicea's "Javascript: Understanding the Weird Parts" course.
Things made more sense after that
1
u/tierrarucker Jan 01 '21
That makes a lot of sense. I have the Colt Steele Web Dev Bootcamp and tried “Understanding the Weird Parts” once before. I’ll be sure to give it another chance and take notes this time! Thanks!
2
5
u/legorockman Jul 17 '20
I'm going through Colt Steele's web dev course and I'm approaching the end. I've picked up that course for doing afterwards, is it good? I like Colt's course but it definitely feels like it's just skimming the surface and I don't feel totally confident going straight from Colt into learning something like React.
2
u/yadoya Jul 17 '20
I haven't seen the inside of this course. But it seems to me that he gives you a broad view of things rather than explain to you the inner workings of JS
1
u/legorockman Jul 17 '20
It's definitely a broader view, it doesn't use ES6 for a start so doesn't cover arrow functions, classes, etc. And also doesn't go over JS frameworks afaik. So I'm hoping Alicea's course fills in those gaps.
1
u/yadoya Jul 17 '20
Alicea's course is mainly ES5 so you won't see arrow functions or classes a lot either (you will a bit, don't worry), but it's not the main goal either. Its goal is to help you understand what happens once you finish typing your code and click "Run".
It's definitely been a turning point in my learning process
1
u/legorockman Jul 17 '20
Awesome, much appreciated.
Out of curiosity, any good sources for learning ES6? Or at least the main things to be aware of? I remember FCC used to have a section on it but I know they changed their curriculum a fair bit.
2
u/suadegreen69 Jul 17 '20
If you don’t mind the reading, the YDKJSY book series is phenomenal, best of all it is freely available on GitHub. It’s is pretty much a layer of abstraction above the ECMA documentation, so regardless of your current level chances are everyone can learn a thing or two from the series. TLDR: YDKJSY (YouDon’TKnowJavaScriptYet) book series free on GitHub - would highly recommend to anyone and everyone using JS, to you though there is an entire book “es6 & beyond” which has what your looking for; es6 & beyond
1
u/yadoya Jul 17 '20
haven't watched it but this seems to cover most things
Also, not really related to your question, but a few sites you should definitely give a look to:
https://webgems.io/javascript/
https://medium.com/the-node-js-collection/modern-javascript-explained-for-dinosaurs-f695e9747b70
2
u/sjunipero Jul 17 '20
Love that dude, I enrolled in his many classes and now doing his React class which is massive and seems overwhelming at first, but he really deep dives into it. I also find App Brewery is more beginner-friendly when it comes to JavaScript, Angela explains it in details and makes it easier for my brains to capture the logic.
1
u/philmayfield Jul 17 '20
It's great. It's a deep dive into how js works. No html or css or webdev stuff.
1
u/philmayfield Jul 17 '20
+1 I recommend that course to anyone interested in js. So many people are eager to jump into frameworks and libraries without establishing a good foundation that makes learning all of that stuff much easier.
1
u/thebeachdaffy Jul 18 '20
Is "JS: Understanding the weird parts" mandatory if you really want to get better in Javascript? Planning to take that course after the one I'm currently taking
2
u/yadoya Jul 18 '20
Nothing is mandatory but this one is pretty short (10 hours) and really different from the other courses you can find out there that don't really explain how JS works under the hood. I know this is the course that brought me from beginner to confident
1
u/thebeachdaffy Jul 18 '20
Uh huh I read a lot about how good that course is if you want to understand Javascript (as it works under the hood) even if it's outdated however, upon cheking the other day, I noticed that it was recently updated to this year so I'm really looking forward to taking that one. Thanks and appreciate the feedback. :)
4
u/aksn1p3r Jul 17 '20
A simple cheatsheet I used to make to map out the thought-process for translating it into a js function or script is... simply jot down the steps you want to take to achieve an end-result (in your own wording and understanding) in a text file. Then for each step, try out some research and nail the js for that part.
Thought process -> Flowchart -> Js code.
2
4
u/suadegreen69 Jul 17 '20 edited Jul 18 '20
It’s perfectly understandable where your coming from, everyone has to start somewhere! Rather than repeating the sentiment already stated (and rightly so) previously in this thread allow me to drop the link to the resource that helped me out of the exact spot you sound like your in atm:
hackreactor prep program: this prep course is meant to get applicants for their boot camp up to speed before they start the intensive web dev course. Enroll in the free “self paced” “self study” program and get stuck in.
**Note: the tutorials after each question are really well made, taking you through the steps of breaking down the problems in to bite sized chunks. That being said try to work through each question as best you can (google, stackoverflow, mdn etc) before checking out the tutorials.
P.S. take your time on each question, I’ll be honest some were a breeze when I picked up the course others took longer than I care to mention (the best part of a day), but you sound like your at that critical point where for a month or so you’ve just got to grind it out. Like maybe it will be 5hrs per day straight up slogging it through uncharted territory only to fold and look at the answer (if you do so - don’t just passively read it that isn’t learning, at least that’s not how I retain complex nuanced knowledge; console.log() all the different steps your not sure about; I’m talking before after and during each iteration if that’s what it takes!) Only to see the same problem solved in a minute or so in a couple lines of code.
It do be like that sometimes.
BUT
You can do it.
It doesn’t matter the speed at which you do it.
Just don’t quit and you will get it done one way or another.
PS read others code but avoid passively copying & pasting solutions at all costs.
Trust me everyone whose any good at programming has been where you are at right now.
Struggle now and live the rest of your life a champion.
Best of luck on you’re journey Peace
2
3
Jul 17 '20
that was one of my problems too when i was learning js. i thought something was wrong with me or i'm stupid or this ain't the job for me but i changed my source of learning and problem was solved.
1
3
Jul 17 '20
I am slowly getting my head around the language and its taking me 3 months to get to where I am now which I’m reasonably happy with (zero programming experience before). I had a similar issue (well I do still as I’m learning react and to me its structure is driving me crazy!) But I found to research a topic to death helps and then for example I was learning recursion so I learnt the concepts then went on to edabit and done a few challenges using recursion. It’s a bit weird to get your head around ( I also have JavaScript The definitive guide next to my desk to physically look up exactly what the hell is going on). All of this combined has definitely helped!
1
3
u/Vivek_Singh_Bisht Jul 17 '20
I started learning JavaScript at the age of 22 and it was my first programming language and I had no clue how it works and how much I understand JS.
I kept going through tutorials and articles to understand how to code in JavaScript but it was really a struggle for about 6-7 months. I thought I was going nowhere but the thing is your mind really needs time to process what is coding and how code is written. Overthinking what you know and what you don't know will only create more confusion since, programming is such a big field that you can never be sure about what you don't know.
If you really like programming, give it time, and don't overthink.
1
3
u/JamesVitaly Jul 17 '20
Build projects. I found tutorials and stuff really useless , until it came to building a project. Get an idea in your head of what you want to build , something that actually does something then figure out how to build it. You will inevitably come across things along the way that you can the lookup and trust me you’ll start to understand when it has a real world application
1
2
Jul 17 '20
What you're using as an educational platform makes a massive difference. If I started with some of the "super easy to follow" Udemy courses I own then I probably wouldn't still be trying. I think what helped me the most is the super slow approach this app SoloLearn took, that and FreeCodeCamp. FCC > SoloLearn for sure.
Don't be afraid to read something 1000 times to understand it too. There's things that I understand somewhat how they work but I'm still kind of guessing if it's the right option.
1
2
u/astropydevs Jul 17 '20
What topic in Js are you learning? I’m also learning JS right now. I’m on callbacks and promises which I’ve just got stuck on
1
u/tierrarucker Jan 06 '21
I originally posted this when I first started working with the DOM but now I’m on loops.
2
u/vortorexi Jul 17 '20
Diminish the time you are trying to learn but keep frequency high, also take some days off time to time.
1
2
u/replicant_potato Jul 17 '20
Learning coding is like a lot of other things, music, sports, etc. It's "muscle memory". You have to keep doing it repeatedly to become comfortable with it. So just keep building small examples.
What I hate about most tutorials us that they do not do enough examples on a particular topic, like promises. You get a couple of examples if you're lucky, then the chapters move on. So make your own practice examples. Stay on that topic longer than the instructor does.
1
2
u/miscellaneous936 Jul 17 '20
I was self taught on fundamentals and algorithms before I joined a bootcamp. And trust me I've gone through every path before then to be self-taught. It took a long time, was very frustrating, and I admit very difficult...there were many times where I've wanted to give up, and there were many times where I took months long breaks (this was before I transitioned careers).
I've done books, codecademy, freecodecamp, video tutorials, online tutorials, etc. Out of all of those, books are your best bet. I find videos and code tutorials rush through it too quickly. Videos and code exercises should be saved for after you understand the basics. Books teach you the fundamentals, concepts, and walk through it with you slowly. You need to type as you follow the book through or nothing will stick. IT's ALL MUSCLE MEMORY.
I highly recommend this as a good starter book, plus it's free and reputable in the JS community: https://eloquentjavascript.net . I wish someone told me about this book when I started. You should also reference https://developer.mozilla.org/en-US/docs/Web/JavaScript this a TON as well.
Eventually you should try to build something on your own, Even a tiny program can be as simple as a simple if else if else statement.
1
6
u/grelfdotnet Jul 17 '20
Practising is the only way to learn it. Do examples. Lots of them. Think of very simple challenges to begin with, such as how to display current date and time. You may need to search for answers but that's OK as long as you then write the program and find out how to get it to work. Don't just read about it: you must do it. It does require patience.
4
u/FitnessNerd117 Jul 17 '20 edited Jul 17 '20
Here’s my take on learning to program:
Copy
Remix!
Create
You’re at Step 1. You’re watching tutorial videos and copying straight from the experts. That’s great! You’re at least learning something from copying people better than you. The whole point of copying the experts is to KNOW WHAT’S POSSIBLE. That’s it! You’re not there to memorize every method, every algorithm, etc. You’re just there to find out what’s possible with the language/library/framework. Unfortunately, you’re not learning how to think on your own. That’s Step 2.
Step 2: REMIX!! 🙌🙌🙌 This is where the fun really starts. This is where you learn to think for yourself. Tweak a couple things here and there. You’ve seen what JavaScript can do by copying the experts, you KNOW the possibilities, now try them out for yourself! Don’t worry about not remembering that one array method or what “this” means. Just remember that they exist and that the possibility is there. With that in mind, just look it up on Google and you’ll have your answers right then and there. Now take an existing project you’ve completed (via tutorial videos) and tweak what the expert has made. It could be a change in structure (HTML), styling (CSS) or functionality (JavaScript). Change anything! It could be small, it could be big or anything in between. The best part is that any change is GOOD change. After all, this is your way to learn how to think for yourself. That’s the key part of this step!
Step 3: CREATE. This is pretty self-explanatory. After you’ve completed several remixes, make something original. Use everything you’ve learned to create something small. And again, don’t worry about not remembering all of the specifics of the language/library/framework. JUST REMEMBER THE POSSIBILITIES. Repeat what I said: REMEMBER THE POSSIBILITIES. And once you do remember the possibilities, you’ll know what to Google! Easy as that!
EDIT: A note for Step 1. Not all tutorials are created equal. If you can’t understand it from one expert, seek out another. I know Brad Traversy is a really popular teacher on YouTube and udemy, but imo, some sections of his Modern JS course just weren’t doing it for me. I ended up watching other experts and their explanations. See if that helps!
1
1
3
3
2
u/KonkenBonken Jul 17 '20
Try playing around in the console, that was what I did. Try getting a element from a page, and then do diffrent thing with it; change all images on Google to one specific.
2
u/EIGRP_OH Jul 17 '20
If you get stuck on a particular topic I tend to google, for example: "recursion javascript eli5" to try to get a high level overview of what the topic is. Once I understand that I'll go back to the official docs and see if it makes more sense now that I have the high level understanding of it.
2
u/GREEN_TOOTS Jul 18 '20
I’ve said this exact thing many times. Just keep going and keep making stuff. It will come together only with time.
1
1
u/SnooPredictions9269 Jul 17 '20
I was at this point as well when I was learning how to code. It really helps to go on a website such as HackerRank or Leetcode and solve a lot of problems. Once you are confident that you can solve any and all "easy" difficulty questions, then I recommend you start doing projects
1
u/torrentstorm Jul 17 '20
The worst things are the interview questions. Sometimes, you're stuck on a particular problem and can't think of a solution. This is because a lot of us just google the answers and this ends up becoming a really bad habit for most of us.
1
u/mobydikc Jul 17 '20
learning to “think like a computer” and break each big think down step by step” into manageable pieces but even when I do it’s still confusing.
Yep. JavaScript is just the tool you're using. The real skill is general problem solving, and having the patience to deal with a completely unemotional machine that only does what it's told.
It's a muscle you just have to exercise. Stick with it!
0
0
17
Jul 17 '20
[removed] — view removed comment
1
u/Fingerbob73 Jul 17 '20
Bear in mind however that the FizzBuzz problem is not really about coding even though they want a coded solution. One vital step to learning in my opinion is to try your best to think logical solutions to what you are being asked. If you can either verbalise or write down the steps required for something to happen logically then this will help you to turn those steps into code. Granted, you may struggle to begin with and even write ugly code that somehow just works but you can always come back to it again when you have a better understanding and look to refactor your code.
12
Jul 17 '20
[removed] — view removed comment
1
u/thebeachdaffy Jul 17 '20
Javascript info is so straightforward and really helpful. Is it a better than MDN? Haven’t really dug much in MDN cause javascript info explains things really well already. Which is a better reference in your opinion?
2
Jul 17 '20
[removed] — view removed comment
4
u/thebeachdaffy Jul 17 '20
Gotcha! Currently learning JS in udemy by Jonas S and it doesn’t go deep each topics so I find myself reading thru javascript.info to understand the syntax better while doing the course so I’m taking it really slow. It has helped me a lot. Will look into MDN in the future once I get to DOM manipulation as you have suggested. Thanks for this
2
u/LinkifyBot Jul 17 '20
I found links in your comment that were not hyperlinked:
I did the honors for you.
delete | information | <3
2
u/LinkifyBot Jul 17 '20
I found links in your comment that were not hyperlinked:
I did the honors for you.
delete | information | <3
99
u/Saf94 Jul 17 '20
There’s actually a really good reason for why this happens and it’s totally not your fault or anything you’re doing wrong.
These tutorials that you’re watching are made by experts and not teachers. The thing is, experts make very poor teachers.
In summary if you don’t want to read the article
So don’t blame yourself at all. The reason going over the tutorial again and again isn’t making it stick is because the tutorial almost certainly is missing out some concepts that you need to understand. An experts explanation will often assume knowledge or skip over important sub steps because it’s automated away in the brain of an expert who can’t break things down to the most componentised level.
So the solution to this is the following. Watch the video very slowly, every moment, every word, every concept which doesn’t make complete sense, stop. Stop at that moment and google. Google the thing you didn’t fully understand. Because you’re going to have to fill in the gaps yourself.
So for example, if the video talks about looping over an array, but you’re not completely clear about why he used the loop he did or how looping works you need to pause the video and read into it yourself until you are clear on it.
It may sound slow, long and tedious but I guarantee you it’s 1000% faster and more effective in the long run. The truth is you can spin round in circles forever or you can go slow now to fill in your gaps in knowledge and see big benefits from it and get past your issues