Reading and exploring existing code is often the fastest way to learn programming. Sure, it’s important to write a lot of code, get stuck, fix your problems, and build cool things. But how can you expect to write great code if you’ve never seen any before?
Learning to run, explain, and modify existing code is a crucial skill to learn early in your programming life. Besides being an effective learning strategy, this is also what you’ll spend most of your time doing as a programmer.
Think of these three steps in your learning each time you encounter a new skill or language feature in programming. Even experienced developers go through these steps when learning new technologies!
Don’t worry about making to Create as fast as possible. The more time you spend learning to Read and Modify, the better you will master Create.
There’s so many examples and exercises in this repository, it’s easy to forget of what you still need to finish or what you want to review again. Luckily VSCode is really good at searching through folders of code.
You can write hashtags in your comments while you’re studying, then search for those hashtags later so you don’t miss anything. Here’s some ideas:
// #todo, still a few blanks left
- search for #todo
in Study Lenses or
VScode to find all the exercises you still need to study// #review, coercion is confusing this again next week
- search for
#review
to find the files you need to study againCreating a project board on your GitHub account for tracking your study at HYF
can help you keep track of everything you’re learning. You can create the board
at this link: https://github.com/your_user_name?tab=projects
.
These 4 columns may be helpful:
Some tips for learning the most from each program you study.
Learning to read your code aloud and to pronounce the strange syntax in JavaScript is super important! Practice alone, practice with a friend, record yourself and play it back. When you watch video tutorials pay close attention and practice repeating how the teacher pronounces their code.
This might not seem interesting at first, but reading each line of code out loud will help you pay attention to details you might miss otherwise.
before running the code
without stepping through
Browser Debugger, JS Tutor
Step through line by line and take turns explaining every other step: