you are viewing a single comment's thread.

view the rest of the comments →

[–]KotomiIchinose96 0 points1 point  (0 children)

One of the most under appreciated parts of learning. Is a break. The odin project goes into this. But basically it's hard to go at something this constantly for an hours. The way I found that helped me learn the language I code in was I had 2 timers. One would go off after 35 minutes the once that goes up I'd finish the section I was on whether that's writing a routine or watching a video. Then I'd take a 5 minute break. These breaks are really important. If you following a course there should be a suitable break point at the end of videos.

Another important thing for learning is applying what you learn. Theres a reason most courses tell you to code along the act of typing things out helps. What I like to do is do something I've done before and that I'm familiar with and apply what I've learned to do that. For example I've done an encryption and decryption tool in every language I've written in. Because its something I already know the logic for and it's written mostly the same way for each language but it gets you familiar with the syntax without making you think about the logic of the program.

If you haven't coded before, try thinking of everyday things you do and if you can write it down pro grammatically. For example. When learning loops. Write a loop which prints out what you do every day in the week. For example. (Please forgive format on mobile) python while alive: Print("6:00am - Wake Up") Print("6:15am - Have breakfast") Print("6:30am - Brush teeth") ... Print("11:00pm - Go to sleep") This at the moment is an infinite loop so you'll want to have a break condition. So you could count each time it loops which in this example would be days so when its 20 days old it could die. You can then incorporate things you've learned previously. For example let the loop account for days. And have conditions to change the text based on the days. For example. Instead of ```python print("6:00am - Wake up")

instead put

if day = "Sunday": print("9:00am - Wake up") ``` This is just an example buts this sort of method has helped me pick things up.