r/AskProgramming • u/akmessi2810 • Jun 11 '26
Other is it normal not remembering syntax and taking help from the internet for almost everything?
i am good at defining what i need, what architecture i need, what system design i need.
but not good enough to convert it into code.
i am new to rust, and i feel like i understand and dont understand at the same time.
otherwise, i am well versed with my ML stuff, python and a bit of CUDA.
what are your views?
4
Upvotes
7
u/KingofGamesYami Jun 11 '26
At first sure. Eventually you'll remember the common stuff and only need to read the reference manual for stuff you don't use frequently.
E.g. I rarely use manual lifetime annotations in rust. So when I do, I'll pull up the reference to make sure I'm doing it right.
4
u/balefrost Jun 11 '26
If you write a lot of code in a particular language, the syntax will become second nature. You'll still occasionally need to look something up (e.g. C++ pointer-to-member always trips me up). But most of the time you're not thinking about syntax.
If you don't have a lot of practice with writing code in that language, then you will struggle to write code in that language. You might be able to read it just fine, but writing it will be difficult.
I guess it's like natural language. If you know German but don't speak German regularly, you will stumble on things like vocabulary, sentence structure, etc. But you can probably read a German news article without any issue.
The only way out is through. If you want to get better at writing code, you just need to write more code.
2
u/HaLo2FrEeEk Jun 11 '26
I've been writing code for 20+ years. It's a hobby, I don't do it for a living, and I have to look stuff up all the time. Sometimes I refer to my old code, sometimes I google. There's no shame, you'll get better at it over time but you'll still have to look stuff up sometimes, it's normal.
2
u/Asyx Jun 13 '26
For new languages? Constantly. Like, if I haven't written a language in a while, you can bet money I forgot how to iterate over a range. (for x in y in Python).
I actually learn new languages by using the learn x in y minutes page open as a cheat sheet.
1
u/AintNoGodsUpHere Jun 11 '26
Yes, pretty normal.
Syntax means nothing and with use, you'll remember because it becomes muscle memory.
If you know what you want, how you want it that's already like 80% of coding.
1
u/GreatMinds1234 Jun 11 '26
Most developers do that frequently. One thing helps if you start contributing to Stack overflow.
1
u/Pale_Height_1251 Jun 11 '26
Same as anything else, you remember what you use a lot. If you drive somewhere once or twice, you may not remember the way. If you drive there often, you'll remember.
1
u/Treemosher Jun 12 '26
It's just repetition. Don't worry about memorizing shit you rarely use. If you are using something day after day, you're going to have to look it up less and less the more you use it. If you take a break for a year, you'll forget but also remember faster
1
u/big_data_mike Jun 12 '26
Just about the only thing I have completely memorized is is pandas syntax because I have used it so much. Everything else I kind of know and I reuse old code a lot.
I wrote some rust a few months ago and that was all ChatGPT + copying some else’s code that was already written
2
u/[deleted] Jun 11 '26
[removed] — view removed comment
2
u/[deleted] Jun 12 '26
[removed] — view removed comment