Sometimes. Most engineers can't remember what they wrote yesterday but can write an algorithm by hand if asked.
Contributing to a shared codebase is like writing an endless novel with many writers, revisions, and a long history of changing based on the problem a particular piece aims to solve.
It's almost impossible to remember everything you or someone else wrote.
There is; however, some recall involved when programming. You've already memorized many words and phrases in the English language, and that's a great start since programming languages are in English.
- variable declaration:
You will find these basic concepts in all programming languages, sometimes with the same syntax.
Memory works like a muscle. The more you practice something, the better you get at it. When engaging in deliberate practice of a skill, your nervous system sends electrical impulses to new areas of your brain. This action insulates the axons with a myelin sheath that strengthens the signal over time.
With enough repetition, your understanding of new concepts will be embedded in your long-term memory, making your recall faster than it was before.