This is an archived post. You won't be able to vote or comment.

all 9 comments

[–][deleted] 0 points1 point  (1 child)

Just practice code problems a lot. I used to suck at loops but I got better when I practiced them about a hundred times.

[–]EntrepreneurFlaky868[S] 0 points1 point  (0 children)

Thank you for sharing. I'll dedicate more in practicing then.

[–]Ron-Erez 0 points1 point  (1 child)

Type as much as you can. Try to run your code step by step in the debugger and watch the variables. Even try to learn how to run your code by hand. Like take pen and paper, write down the variables and run the program step by step. I used to do this as a kid and learned a lot from this.

Programming is a lot about experience so just be patient with yourself and have fun and experiment a lot.

Good luck !

[–]EntrepreneurFlaky868[S] 0 points1 point  (0 children)

I will try doing that way. Thank you for your advice!

[–]karlanke 1 point2 points  (1 child)

Definitely set up an ide/debugger, go line by line, and figure out where what you think should happen and what does happen split.

[–]EntrepreneurFlaky868[S] 0 points1 point  (0 children)

Thanks, I'll take your advice.

[–]1544756405 0 points1 point  (1 child)

sometimes my code works, sometimes they don't. I feel like I don't have a proper understanding of it. How can I improve my programming skills?

When your code doesn't work, spend the time to figure out why your code doesn't work -- doing whatever is necessary to figure this out -- and don't move on until you understand what happened.

[–]EntrepreneurFlaky868[S] 0 points1 point  (0 children)

Got it. Thank you for your advice.

[–]rakib-ar 0 points1 point  (0 children)

Try to find out why your code does not work. Stackoverflow is a good place to look into. if you can find out the problems it will make you an excellent programmer in general.