I started programming way back in 1977. In recent years I have programmed Arduinos an Raspberry Pis in C++ and Python. I was taught to use flow charts back in the 1970s to give a framework of how the logic works. I still find that useful when actually implementing the code. As others have said. Repetition is King. I still find myself looking up syntax for commands I don't use often. Cheat sheets for common scripts and programming languages are easy to come by online. Just print one out and keep it handy.