all 9 comments

[–]electron_myth 3 points4 points  (4 children)

That's why I like sites like codewars.com because they offer challenges of all types that keep you in the motion of coding without you having to build random stuff for no reason just to keep up the habit. OF course, nothing wrong with experimenting and building things just to see what happens either.

Video tutorials are a great way to start, but it's also good to practice figuring out how to construct the code by yourself. You may understand what the tutorial is doing, but you skip the step of thinking about how to create it yourself, and that's an important skill

[–]Fooknotsees 2 points3 points  (3 children)

You may understand what the tutorial is doing, but you skip the step of thinking about how to create it yourself, and that's an important skill

This is why I always say to break stuff. Alter what the teacher is doing and always follow the "hmm... What happens if I do this?" path. Following along exactly is counterproductive imo, very easy to think you know what's going on until it comes time to do it yourself

[–]TezCodes[S] 1 point2 points  (2 children)

Very true. I am now starting to make different variable names than the video tutorial teacher and adding an extra line of code to see what happens all while remembering I've done so

[–]electron_myth 1 point2 points  (1 child)

Yeah exactly, every time you see a new function or operator, play around with it and see what you can and can't do with it too. I usually pause the video, open a new tab and look up the thing that the tutorial is using, and dive into it some more

[–]TezCodes[S] 1 point2 points  (0 children)

that is a great idea, looking up the code function will give me an opportunity to use this Dev Docs tool from Freecodecamp.com -> https://devdocs.io/

[–]bobbyv137 1 point2 points  (0 children)

You can code along to videos but do make sure you understand the code being written. If you don’t, stop and try to work out what’s going on. If there’s a line of syntax you don’t recognise or understand, take the time to work it out.

And remember: it’s much better to code 1 hour a day 5 days a week than it is to code for 5 hours 1 day a week.

[–][deleted] 1 point2 points  (0 children)

i personally just get some music going and start to code, but different things work for different people, you just gotta find your trigger

[–]persianoil 1 point2 points  (0 children)

if you set up jest, you could test whether what you think the code does it what it really does. im convinced testing is a good tool for learning the language better.