Skip to content

Instantly share code, notes, and snippets.

@danbroadbent
Forked from mbburch/prework.md
Last active June 26, 2016 18:49
Show Gist options
  • Save danbroadbent/ebf13eff30f94ba36d4343b8ec8e4846 to your computer and use it in GitHub Desktop.
Save danbroadbent/ebf13eff30f94ba36d4343b8ec8e4846 to your computer and use it in GitHub Desktop.
An example template for your Turing pre-work Gist

Turing School Prework - Dan Broadbent

Task A- Practice Typing:

  • screenshots of scores will be posted in comments

Task B- Algorithmic Thinking & Logic:

  • screenshots of completed sections will be posted in comments

Task C- Create your Gist:

Task D- Set up your Environment:

  • Did you run into any issues? I didn't have the latest version of Xcode because I'm running Yosemite, should I upgrade? And had issues installing Seeing is Believing
  • How do you open Atom from your Terminal? atom
  • What is the file extension for a Ruby file? .rb
  • What is the Atom shortcut for hiding/ showing your file tree view? command+\
  • What is the Atom shortcut for quickly finding a file (fuzzy finder)? command+p

Task E- The Command Line:

  • screenshots of your terminal after each exercise will be posted in comments

Day One Questions:

  • What does pwd stand for, and how is this command helpful? print working directory / it shows you what folder/directory you're currently working in
  • What does hostname tell you, and what shows up in YOUR terminal when you type hostname? your computer's name / Dans-MacBook-Pro.local

Task F- Learn Ruby:

Option 1 Questions:

IRB

  • How do you start and stop irb? to start, type irb. to stop, type exit or contorl+d
  • What might you use irb for? to experiment with how ruby features work

Variables

  • How do you create a variable? assign a name to a value
  • What did you learn about the rules for naming variables? some naming conventions cause errors like starting with a number, using a dash, or using a number
  • How do you change the value of a variable? set the variable = to a different value

Datatypes

  • How can you find out the class of a variable? apply the .class method
  • What are two string methods? .sum .match
  • How can you change an integer to a string? to_s method

Strings

  • Why might you use double quotes instead of single quotes in Ruby? So you can use interpolation within a string
  • What is this used for in Ruby: #{}? Interpolation
  • How would you remove all the vowels from a string? .delete method with ('aeiou')

Input & Output

  • What do 'print' and 'puts' do in Ruby? print writes something to the terminal, puts writes something to the terminal and returns nil
  • What does 'gets' do in Ruby? take a user input and return it
  • Add a screenshot in the comments of the program you created that uses 'puts' and 'gets', and give it the title, "I/O".

Numbers & Arithmetic

  • What is the difference between integers and floats? floats have decimal places
  • Complete the challenge, and post a screenshot of your program in the comments with the title, "Numbers".

Booleans

  • What do each of the following symbols mean?
    • == is equal?
    • = is greater than or equal to?

    • <= is less than or equal to?
    • != is not equal to?
    • && and (both must be true)
    • || or (one must be true)
  • What are two Ruby methods that return booleans? .nil? .include?

Conditionals

  • What is flow control? A way of selectively running code based on different values
  • What will the following code return?
apple_count = 4

if apple_count > 5
  puts "Lots of apples!"
else
  puts 'Not many apples...'
end

Not many apples...

  • What is an infinite loop, and how can you get out of one? This is where nothing makes the while condition false, use ctrl+c to get out.
  • Take a screenshot of your program and terminal showing two different outputs, and post it in the comments with the title, "Conditionals".

nil

  • What is nil? it means nothing. either a variable is unassigned or a function didn't return a variable
  • Take a screenshot of your terminal after working through Step 4, and post it in the comments with the title, "nil".

Symbols

  • How can symbols be beneficial in Ruby? They are useful when you reuse things a lot, it can save memory
  • Does naming symbols use the same rules for naming variables? yes, you can't name them as constants
  • Take a screenshot of your terminal after working through Step 4, and post it in the comments with the title, "Symbols".

Arrays

  • What method can you call to find out how many elements are in an array? .length
  • What is the index of pizza in this array: ["pizza", "ice cream", "cauliflower"]? 0
  • What do 'push' and 'pop' do? push adds an object to the end of an array, pop removes the object at the end of an array and returns it

Hashes

  • Describe some differences between arrays and hashes. Hashes hold key value pairs of information, arrays are just lists of things
  • What is a case when you might prefer an array? What is a case when you might prefer a hash? An array is good for storing a bunch of item together, a hash is useful when you need to store information about different properties of an item. Hashes can be nested in arrays
    • Take a screenshot of your terminal after working through Step 2, and post it in the comments with the title, "Hashes".

Task G- Prework Reflection:

  • Were you able to get through the work? Did you rush to finish, or take your time? I was able to finish the 7 days. I didn't rush too much but I did get a late start, so I did double up on some days.
  • What are you most looking forward to learning more about? I'm most interested in learning about database design, how to work with APIs and how to build APIs.
  • What topics would you most like to see reinforced by instructors? I find it is very helpful to know why code does what it does under the hood, as opposed just taking it as is.
  • What is most confusing to you about what you've learned? Getting used to command line and installing diffetent things from it. It feels like you have the ability to mess up your computer by potentially typing the wrong thing.
  • What questions do you have for your student mentor or for your instructors? Is it ok if I'm running Yosemite, or do I need to upgrade? If you delete something in the command line is it gone forever?

Pre-work Tasks- One Month Schedule

(Note: You will most likely only get to the following sections if you have more than a week for your pre-work. If you are doing the one week pre-work schedule, you may delete this section of the Gist.)

Railsbridge Curriculum, cont.

  • Loops: Take a screenshot of your "Challenge" program, and post it as a comment in your Gist.
  • What challenges did you try for "Summary: Basics"? Post a screenshot of one of your programs.
  • Functions: How do you call a function and store the result in a variable?
  • Describe the purpose of the following in Ruby classes: initialize method, new method, instance variables.
  • How to Write a Program: Screenhero with your student mentor and share your program. Write a bit about what you found most challenging, and most enjoyable, in creating your program.

Launch School Ruby Book

  • screenshots will be posted in comments
  • What are your three biggest takeaways from working through this book?

CodeSchool

  • screenshots will be posted in comments
  • What are your two biggest takeaways from working through this tutorial?
  • What is one question you have about Git & GitHub?

Workflow Video

  • Describe your thinking on effective workflow. What shortcuts do you think you'll find most useful? What would you like to learn or practice that will most help you improve your speed and workflow?

Michael Hartl's Command Line Book

As you complete each section, respond to the related questions below (mostly taken directly from the tutorial exercises):

  • 1.3: By reading the "man" page for echo, determine the command needed to print out “hello” without the trailing newline. How did you do it?
  • 1.4: What do Ctrl-A, Ctrl-E, and Ctrl-U do?
  • 1.5: What are the shortcuts for clearing your screen, and exiting your terminal?
  • 2.1: What is the "cat" command used for? What is the "diff" command used for?
  • 2.2: What command would you use to list all txt files? What command would you use to show all hidden files?
  • 3.1: How can you download a file from the internet, using the command line?
  • 3.3: Describe two commands you can use in conjunction with "less".
  • 3.4: What are two things you can do with "grep"?
@danbroadbent
Copy link
Author

Task D Screenshot
screen shot 2016-06-15 at 2 38 41 pm

@danbroadbent
Copy link
Author

Day 1 Daily Tasks
screen shot 2016-06-16 at 9 08 04 am
screen shot 2016-06-16 at 9 18 50 am

@danbroadbent
Copy link
Author

Day 2 Task E Screenshots
screen shot 2016-06-16 at 11 50 45 am
screen shot 2016-06-16 at 11 58 31 am
screen shot 2016-06-16 at 12 06 17 pm

@danbroadbent
Copy link
Author

Day 2 Daily Tasks
screen shot 2016-06-16 at 3 08 22 pm
screen shot 2016-06-16 at 3 12 51 pm

@danbroadbent
Copy link
Author

Day 3 Daily Tasks
screen shot 2016-06-17 at 9 36 12 am
screen shot 2016-06-17 at 9 47 05 am

@danbroadbent
Copy link
Author

Task E Day 4
screen shot 2016-06-18 at 8 20 25 am
screen shot 2016-06-18 at 8 26 26 am
screen shot 2016-06-18 at 8 36 46 am

@danbroadbent
Copy link
Author

Task F - Numbers
screen shot 2016-06-18 at 8 48 23 am

@danbroadbent
Copy link
Author

Task F - Conditionals
screen shot 2016-06-19 at 6 46 21 am
screen shot 2016-06-19 at 6 47 58 am

@danbroadbent
Copy link
Author

Day 4 Daily Tasks
screen shot 2016-06-19 at 7 05 41 am

@danbroadbent
Copy link
Author

Day 5 Task E
screen shot 2016-06-19 at 7 16 47 am
screen shot 2016-06-19 at 7 22 11 am
screen shot 2016-06-19 at 7 25 04 am

@danbroadbent
Copy link
Author

Task F - Nil
screen shot 2016-06-20 at 7 36 22 am

@danbroadbent
Copy link
Author

Task F - Symbols
screen shot 2016-06-20 at 7 50 03 am

@danbroadbent
Copy link
Author

danbroadbent commented Jun 20, 2016

screen shot 2016-06-20 at 8 04 39 am
Day 5 Daily Tasks
screen shot 2016-06-20 at 7 57 37 am

@danbroadbent
Copy link
Author

Day 6 Daily Task
screen shot 2016-06-23 at 8 11 29 am
screen shot 2016-06-23 at 8 22 01 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment