Search Unity

How Can i Remember Code?

Discussion in 'Getting Started' started by Shadowman507, Aug 17, 2017.

  1. Shadowman507

    Shadowman507

    Joined:
    Sep 2, 2015
    Posts:
    5
    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?
     
  2. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    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.
     
    Ryiah and larku like this.
  3. FMark92

    FMark92

    Joined:
    May 18, 2017
    Posts:
    1,243
    Just experince. You code for about 10 years and you can write code without even looking at the screen.
     
    Dave-Carlile, Ryiah and hippocoder like this.
  4. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,512
    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.
     
    Ryiah likes this.
  5. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    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.
     
    Ryiah and Kiwasi like this.
  6. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,037
    And just like code, knowing when to and when not to use them ;)

    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 :)
     
    Ryiah, Kiwasi and Schneider21 like this.