How Can i Remember Code?

How Can I easily remember code? is there another way of thinking lol there is just soooo much stuff to try to remember. do people even remember it?

We don’t. We code with the reference docs open beside us.

You’ll find most coding ‘best practices’ are all about reducing the amount of work the human brain has to do. Human brains aren’t very good at programming. Expect your brain to rebel the whole way, and take measures to make life easy for it.

2 Likes

Just experince. You code for about 10 years and you can write code without even looking at the screen.

3 Likes

It’s the same way you remember how to spell “expeditiously”, “poignant”, or “voracious” after using them a number of times. Part of it is practice. The other part is recognizing sounds, learning the roots, and using those rules to assemble not just those words, but words you’ve never actually spelled before.

Once you understand the principles of how programming works, practice using the API and understand the classes (both native and Unity-specific ones), it’ll come more naturally. You’ll always have to look stuff up at times, but certain parts will become second nature.

1 Like

Yep, it’s one of those things where you think you’ll never remember how a for loop is constructed then later you not only remember it but understand it. Then, drunk with power you start putting method calls in for loops. I’m sure everyone’s done it at some point, then you realise you’re an idiot and should basically just KISS it gently.

2 Likes

And just like code, knowing when to and when not to use them :wink:

You only need to know the programming language. All the APIs you just need to know the general style for familiarity, then you can cheat like the rest of us: Just start typing some letters and the editor fills in the blanks :slight_smile:

3 Likes