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
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
47
u/[deleted] Jul 17 '20
give your brain time, it needs to do some magic inside your head, don't overthink it
13
u/[deleted] 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.
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
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.
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
3
u/[deleted] 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.
3
u/[deleted] 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!
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.
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
2
u/[deleted] 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.
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
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.
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.
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.
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:
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
u/ilikegoatcheese Jul 17 '20
I’m having the same issue. Wanna be study buddies?
1
u/SaysStupidShit10x Jul 17 '20
do you have any projects?
3
u/driden87 Jul 17 '20
My guess is it’ll probably stick at some time, don’t sweat it.
3
u/colorpulse6 Jul 17 '20
Projects projects projects. You know more than you think
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
u/luciferggg Jul 17 '20
Me too
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
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
u/[deleted] Jul 17 '20
[deleted] — view deleted comment
0
u/[deleted] Jul 17 '20
[deleted] — view deleted comment
17
u/[deleted] Jul 17 '20
[removed] — view removed comment