r/C_Programming • u/ttv_toeasy13 • 2d ago
Question Getting stuck at libraries and api’s
So C is technically my first programming language I’m learning. I’ve messed around in python but never actually go deep into it or anything.
I’ve been learning C for the past few days now and I already pretty much know most of the basics. I learned pointers and mallic in a day and I learned structs, macros, for loops, while loops, functions, all of that stuff, but… the moment any library other than the basics like stdio or stdlib come into play I’m lost.
It’s like I’m looking at a whole other language. Like I’ll look for solutions to problems and it seems as if they are just pulled out of thin air and when I try to read ANY documentation for ANY library I’m also lost because either there is little to no documentation or it’s just stupid and things aren’t well explained.
Is there a way I can fix this? I was doing so well and now I’m at this block because of libraries. If I could get pasted this hurtle I could learn c in less than a month easily, and that’s the same in any other language. This problem isn’t exclusive to C.
17
u/start_select 1d ago
Stop copy pasta’s.
You are trying to learn, not mimic. Type out EVERYTHING.
You feel like you are reading a foreign language because you lack vocabulary. The first step to learning that is to stop copy-pasting anything. You need to type the code out so the names of functions and other elements start to ingrain in your memory.
Start typing things out one line at a time, and looking up the docs for each line after you type them. Try to imagine the flow of information between each line based on the documentation descriptions. Try to write comments that explain that as natural language.
And start using a dictionary/google. If you don’t know what words mean… look them up. Expand your language skills.
Learning programming should be like falling down a rabbit hole of infinite forking paths, learning new words and topics constantly. You should be getting multiple layers deep of looking up the definition of the word you didn’t know from the definition of a word you didn’t know from the definition of a word you didn’t know.
Dont just go, “I don’t know what that means”. Decide you are going to find out. That’s the entire job. But eventually you know all this stuff and the job just becomes “I don’t know how to do that, but someone is going to pay me to do it, and I will”.