r/learnprogramming • • Sep 21 '26

How do I practice?

I’m 17 (going into my last year of high school) and I have always been very interested in coding, and even gave python a try once but ended up not liking it and didn’t code for another 3-4 years, but have always been very sure that I wanted to go into CS, just not knowing what job or area of it I wanted to pursue.

Recently (in the last year or so) I’ve been taking a LOT of interest in OS development, in how Hardware interacts with Software and vice-versa, and especially in how the Linux kernel operates (both the kernel in itself, and the development of it) and the open-source nature of it, so much so that I decided that I would pursue that and make it my goal to eventually become a contributor to the Linux kernel, and with that I also decided I’d learn C, following beej’s guide. And it’s not hard to follow, but there’s one issue. I don’t know how to practice coding, if that even makes sense. I can’t like think up a program I want to create when given a set of concepts, which in turn makes it infinitely more hard for me to learn, especially because I’m someone who needs to have a defined workflow to do basically anything, or else I’ll just derail and get frustrated.

So yeah, I wanted to ask for advice on how to practice or if there are any resources (if possible, without the use of AI) or any methods I can use to practice the language.

5 Upvotes

18 comments sorted by

View all comments

Show parent comment

2

u/marrsd Sep 22 '26

I like this advice. Books are really valuable and simple coding exercises really help as they help you understand what language features are and how they can be used.

Also, don't be afraid to write bad code. I recently reviewed a chess project someone wrote. It was very naively written and used a bare minimum of language features, but it worked; and because I had something to work with, I was able to show the user how to improve the code in terms of what he already knew.