2 ms·
> What should I do to practice [programming]? Write programs. > Any advice for an aspiring programmer? Debugging programs is a big part of how you learn. Do
by csense 13y ago
> What should I do to practice [programming]?
Write programs.
> Any advice for an aspiring programmer?
Debugging programs is a big part of how you learn. Don't be afraid to put print statements in your program to see what the values of variables are at various points in time. Don't be discouraged when something doesn't work -- any good programmer has spent hours or even days finding and fixing a bug that's turned out to be trivial.
Don't be afraid to throw out a project and start over. Your second attempt is often much better than the first.
Learn version control. Git is the de facto standard, and if you master it, it will improve your productivity greatly as your projects get larger.
If possible, find someone online or in real life who's also interested in programming, you can bounce ideas off each other and work together on projects. It's sometimes easier to get and stay enthusiastic about a project if someone else is relying on you to make progress on it.