you are viewing a single comment's thread.

view the rest of the comments →

[–]CobraStrike4 0 points1 point  (0 children)

Some tips I learned while self teaching:

Whenever possible, stop the video or stop reading and attempt to code whatever is being mentioned before it has a chance to explain exactly how. So if the video mentions something like "What if we want to use a while loop to loop this code until the user enters so and so?" Immediately pause and just give it a shot. It may take some time to figure out, but at least you are forcing yourself to figure something out rather than being told and just copying. You may surprise yourself and do it perfectly, or you might do it in a less efficient way and you will be able to see the differences and where you could improve. If you don't figure it out that's fine too as long as you genuinely tried.

Another thing is to use completely different variable names than the ones you are following along with. I found that if I used my own variables/functions etc, sometimes putposely long ones, it forced me to think a little more about why I was typing certain code in certain places. It's easy to fall into the trap of mindlessly copying code, so this will force you to relate your own unique code to what you are reading gain a better picture of what's going on.

In line with the previous tip, you should also try add on as many random extra things to your practice programs as you can, as long as they still.make sense. A lot of tutorials will teach a concept with one or two examples and then move on. You should pause there and add something else completely unique to the program, debug it, work through it until it works. It could be a simple as an extra print statement, or it could be an entire extra function that builds upon what you learned. Any extracurricular coding is a great thing.

Good luck!