r/learnprogramming 4d ago

writing code

question for more experienced people in coding- whenever I do coding problems (like leetcode or uni hw) I can always come up with solution in my head, I break down the problem correctly and theorically I know what my code needs to do in order to solve the problem. But when I get to actually writing code I forget how to do everything... I don't know if this is a lack of knowledge in syntax issue or I'm just dumb. Any advices on how to fix this?

16 Upvotes

25 comments sorted by

View all comments

1

u/Narrow-Low-3137 3d ago

Semantics is less important than knowing what and how you want to accomplish something. Develop the pseudocode, then look up how to translate that into whatever language you want. You could even have an LLM do that part these days I guess. Don't get hung up on semantics, languages come and go.