Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build an Interactive Story App (Retired) User Input Finding Views by IDs

Generally Speaking, are programmers expected to have code for the majority of JAVA functions memorized or can you copy?

I'm working through my first challenge after finishing the "building a simple android app" project. Although I have an idea of what this challenge is requesting of me I don't remember the code exactly word for word. My question is are employers and general consensus in the world of programming expect programmers to have these basics memorized or is it acceptable to review old notes or look code up and simple copy paste it. I'm trying to figure out if I need to create flash cards for this stuff lol. Thank you for your time with this question.

MainActivity.java
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

    protected Button mExterminateButton;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Declare our view variables

    }

}

I think you should have the basics down. Memorizing everything is probably not expected. However having a solid grasp of the programming language in question is definitely a must. Also i think nowadays employers look a lot through your Glitch Hub profile. There they can see how you code, how organized you are etc.... There are probably more experienced people here to answer you since im a beginner myself,but this is based on conversations with friend who are in the business and though reading several blogs, edu resources etc... Cheers.