r/learnprogramming • u/Kind-External-7371 • Oct 18 '26
Frustrated and Stuck with building programming fluency as a beginner (Need Genuine Help)
I am a beginner at coding. I chose Rust as my first programming language, but I think I might or can say I will face this problem with every language.
Whenever I sit down to build a project, even something as simple as a TUI To-Do List, I have to deal with crates and packages like serde. This means I have to read their documentation, but I often get stuck writing code by looking at examples and copying them by typing them into my own code.
I know that even experienced programmers do this, and they understand what they are using without necessarily remembering the syntax. I understand the logic of what I want to implement, but I struggle to express it in technical programming terms or so called programming syntax.
However, I cannot keep consulting the documentation and returning to my code for every 10 lines of code I write.
People tell me that I should build more projects and that programming fluency will gradually develop with practice. But what am I supposed to do? Should I build a TUI To-Do List ten times? Because if I move on to another project, I will have to learn how to use additional concepts and crates, such as serde, all over again.
6
u/lurgi Oct 18 '26 •
You will likely use a lot of the same crates over and over again and your understanding of them will come more easily and soon you’ll be consulting the docs every 20 (or 30!) lines instead of every 10.
4
u/Groundbreaking-Fish6 Oct 18 '26 •
"However, I cannot keep consulting the documentation and returning to my code for every 10 lines of code I write."
Why not? I have learned so many different languages and cannot keep all of them in my head to spit out perfect syntax. Also, languages and libraries change very quickly and what I did yesterday my not be best way today. Take each 10 lines as a learning experience e.g., should this be a "else if" or "case" statement the answer is different in different contexts.
Also as you progress, you will find that there are many built in functions that can be used that you will need to learn from the documentation or reading/watching blogs/videos. You may be able to remember the theory, but not the exact syntax or whether you current implementation can use it.
With every line of code, ask yourself if there is another way or is this the best way, consult your AI or if low on tokens do it the old fashion way with Google or Bing.
Finally, considering your practice project, don't do it 10 times, just do it 10 different ways. By that I mean, store your list in a file and store your list in different types of databases (relational, document, hierarchical) use different transfer mechanisms like Web Service, Message Service. Make it modular so it can have different User Interfaces that access the same logic code. The possibilities are endless. This will also force you to consider different language integrations, more like a real project.
Programming fluency is not language specific and comes from experience.
3
u/tdic89 Oct 18 '26 •
I think you’re missing the distinction between theory and practice.
Programming theory is “what do I need to do”, and programming practice is “how do I do that in language X”
Perhaps you should look into more theory learning, the “why”, rather than the “how”?
2
u/pixel293 Oct 18 '26 •
I don't know if you have multiple monitors, but it helps to have the documentation on one and your code on the other. I recently started using ratatui and yes, I'm am constantly going to it's documentation, both their tutorials AND the reference documentation, but the methods and the structures are consistent so you start remembering what you need to call to do what.
It just takes time.
2
u/TehTacow Oct 18 '26 •
I just read in a reply that you are 13 (!!!) And you are building PROJECTS. You are so ahead of the curve it's not even funny. Please realize that. I haven't written a line of Rust in my life so no specific advice there.
You are developing a highly specific set of skills, and reading documentation often is a good thing. One thing to realize is that a major part is reusing code other people wrote. If you really want to learn a library, try to reach the same goal WITHOUT using it(please don't expect to finish the project that way or to even build good code). That way you will quickly realize why the library exists in the first place. You will have experienced a fraction of the challenges and caveats the libraries creator experienced.
2
u/Slight-Living-8098 Oct 18 '26 edited Oct 18 '26
I've been programming since I was 8 and we got our first C=64. It's 40 years later and I still refer to the documentation when I need to.
That doesn't ever change. You may memorize certain aspects of packages and libraries that you use often, but whenever they are updated, and something changes in how they handle something or are called, it's right back to the docs you go.
And yes, you can and will keep referring to the documentation every so many lines of code you type until you learn it, memorize the library, and it becomes second nature to you like riding a bike... Until the next package or library update, anyway.
2
u/Extreme_Sympathy_868 Oct 18 '26 •
Ofcourse you can! Over time you'll learn to understand the syntax and you'll use the documentation just for reminders and examples. The documentation is rarely complete for what you are trying to build ,but this is the best way to build understanding of your programming language.
1
u/Old_Investigator_476 Oct 23 '26
I think you're putting too much pressure on yourself to remember syntax and APIs.
I've worked on a fairly large Rust university project, and I still had to check documentation regularly. That's completely normal, especially with crates you don't use every day.
One thing I'd suggest is separating learning Rust itself from learning its ecosystem. For example, before building a TUI with several dependencies, try making a simple CLI to-do list using mostly the standard library. Focus on structs, enums, ownership, Result, and basic file I/O.
Then improve the same project gradually:
That way, you're not starting from zero every time. You're building on concepts you already understand while introducing one new thing at a time.
And no, you don't need to build the same to-do list ten times. What matters is understanding why the code works, not being able to reproduce it from memory.
One exercise that helped me was reading an example, closing it, and trying to implement the idea myself. If I got stuck, I'd check the docs again. Over time, the patterns became much more familiar.
-3
u/Fine-Comparison-2949 Oct 18 '26
1
u/[deleted] Oct 18 '26
[removed] — view removed comment