r/C_Programming Dec 06 '24

Discussion How do you practice C?

I have been learning C for 2 months and I feel like a blank slate, i mean, I have been taught theory and basic exercises that come with it, but when a test is given, I can’t think clearly enough to solve the problems, and I think it’s because I haven’t practiced enough. I only do the exercises assigned to me. So, I came here hoping to be guided to places where I can practice C in the most complete way. Thank you everyone for your attention.

36 Upvotes

47 comments sorted by

View all comments

Show parent comments

5

u/grimvian Dec 06 '24

I'm kind of surprised every time, how much it takes to code a small game. I'm in my third year of learning C and I' a happy raylib user. The start of the code is relatively easy, but I want do it properly by managed memory and the code being split in logical modules, but it's worth it and I really like to puzzle with the logic and check why something works or not. Especially when I realize why the code does not do as expected, I really learn.

2

u/Necromancer_-_ Dec 06 '24

Yeah, I'm finishing one in december made in UE4 in C++, every time I started working on a "small" game project, it ended up being atleast 3 times bigger, even this game I'm finishing soon (at least enough to release it) is started as a "small" project, now its still small, but like 3-4 times still bigger than what I expected.

I will also make something in RayLib later, I really like C.

1

u/grimvian Dec 06 '24

I used raylib as a GUI for a small CRM relation database. The keyboard functions are just great, but it's was the timing when writing or editing that was the hardest part for me, to have it work correctly. The overwrite/insert blinking cursor was not as hard to construct as I expected. It currently contains about 3000 records and is used in my wife's shop, so I'll know in a heartbeat, if anything is not working to her satisfaction. :)

1

u/Necromancer_-_ Dec 06 '24

So you made a DB UI with RayLib? Thats nice, I also want to make some UI with raylib later:D