Skip to content

Instantly share code, notes, and snippets.

@lucyconklin
Forked from mbburch/prework.md
Last active October 3, 2016 12:52
Show Gist options
  • Save lucyconklin/1201ff7c0826b57a3b8ad88aefb3beba to your computer and use it in GitHub Desktop.
Save lucyconklin/1201ff7c0826b57a3b8ad88aefb3beba to your computer and use it in GitHub Desktop.
An example template for your Turing pre-work Gist

Turing School Prework - LUCY

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? Missed the "Install Shell Commands" bit, but found the answer on Stack Overflow. Had to update my OS too.
  • 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 + t, also command + p, but I'm not entirely sure what that does... ok I read the thing and compared it tocommand + band now I get it.

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 and it tells you where you are
  • What does hostname tell you, and what shows up in YOUR terminal when you type hostname? It's the name of my computer. I thought it would be more complicated and specific. Also I am realizing that I should come up with a naming theme for my devices. Lucindas-MBP

Task F- Learn Ruby:

Option 1 Questions:

IRB

  • How do you start and stop irb? type irb, type exit
  • What might you use irb for? testing small bits of Ruby, or experimenting, but not anything you want to save

Variables

  • How do you create a variable? set something equal to something like dalmations = 101
  • What did you learn about the rules for naming variables? all letters is ok, all numbers is ok, letters with an underscore is ok, letters with a dash is not ok, numbers in the middle of letters, or at the end of the variable is ok, but a variable can't start with a number
  • How do you change the value of a variable? set it equal to something else

Datatypes

  • How can you find out the class of a variable? variable.class
  • What are two string methods? :prepend , :slice!
  • How can you change an integer to a string? 5.to_s

Strings

  • Why might you use double quotes instead of single quotes in Ruby? when you are using string interpolation, maybe I should just use double quotes all the time?
  • What is this used for in Ruby: #{}? string interpolation, embedding variables or other Ruby into your string
  • How would you remove all the vowels from a string? "some string".delete('aeiou') I am surprised it doesn't delete only the string 'aeiou', how could you delete a word?

Input & Output

  • What do 'print' and 'puts' do in Ruby? puts prints information for the user of the program, prints is similar, but doesn't make a new line
  • What does 'gets' do in Ruby? gets pauses the program so the user can input a string, and then the program uses it
  • Add a screenshot in the comments of the program you created that uses 'puts' and 'gets', and give it the title, "I/O". done

Numbers & Arithmetic

  • What is the difference between integers and floats? integers are whole and floats are decimals (truncated not rounded)
  • Complete the challenge, and post a screenshot of your program in the comments with the title, "Numbers". done

Booleans

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

    • <= less than or equal to
    • != not equal to
    • && and
    • || or
  • What are two Ruby methods that return booleans? .empty? && .nil?

Conditionals

  • What is flow control? selectively executing code based on values in the program
  • What will the following code return? 'Not many apples...'
apple_count = 4

if apple_count > 5
  puts "Lots of apples!"
else
  puts 'Not many apples...'
end
  • What is an infinite loop, and how can you get out of one? and infinite loop occurs when there is no condition that makes the while loop false and your code runs forever
  • Take a screenshot of your program and terminal showing two different outputs, and post it in the comments with the title, "Conditionals". done

nil

  • What is nil?
  • 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?
  • Does naming symbols use the same rules for naming variables?
  • 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?
  • What is the index of pizza in this array: ["pizza", "ice cream", "cauliflower"]?
  • What do 'push' and 'pop' do?

Hashes

  • Describe some differences between arrays and hashes.
  • What is a case when you might prefer an array? What is a case when you might prefer a hash?
    • 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?The work was fun! I got through most of it and will skim nil, symbols, arrays, and hashes, just so I've seen them before. The first few days took forever, but the last one's weren't so bad. My schedule was complicated by moving and freelance projects, but I'm looking forward to giving school 100%.
  • What are you most looking forward to learning more about? So far the things I have built haven't done much. I'm really excited to build something that does something cool.
  • What topics would you most like to see reinforced by instructors? computer learning, coding language conventions
  • What is most confusing to you about what you've learned? Some of the logic stuff was difficult for me.
  • What questions do you have for your student mentor or for your instructors? I am currently wondering if Back-End was the right decision for me, but I think that is mostly first-day jitters.
@lucyconklin
Copy link
Author

lucyconklin commented Aug 26, 2016

Day 0
A - more typing practice
screen shot 2016-08-26 at 10 10 15 am

screen shot 2016-08-26 at 10 15 34 am

screen shot 2016-08-26 at 10 18 45 am

B - Brilliant quizzes

screen shot 2016-08-26 at 10 35 54 am

@lucyconklin
Copy link
Author

lucyconklin commented Aug 29, 2016

Day 1
A - typing practice
screen shot 2016-08-28 at 1 53 26 pm
screen shot 2016-08-28 at 1 57 34 pm
screen shot 2016-08-28 at 2 01 41 pm

B -Brilliant quizzes, the challenge quizzes were a bit over my head, so I think I will continue with the concept quizzes
screen shot 2016-08-28 at 2 30 18 pm

D - Set up your environment

Should I worry about this error? How do I fix it?
screen shot 2016-08-28 at 5 57 29 pm
Versions of Git, Ruby,
screen shot 2016-08-28 at 6 04 37 pm

@lucyconklin
Copy link
Author

lucyconklin commented Aug 29, 2016

Day 2 (+Task E from day 1)

A - typing practice

screen shot 2016-08-29 at 11 54 30 am

screen shot 2016-08-29 at 11 52 04 am

screen shot 2016-08-29 at 11 49 01 am

B - Brilliant quizzes
screen shot 2016-08-29 at 12 06 15 pm

E - Start Learning the Command Line
Introduction: Shut up and Shell - Flashcards
img_7111
The Setup
Paths, Folders, Directories (pwd)
screen shot 2016-08-29 at 12 59 20 pm
screen shot 2016-08-29 at 12 59 23 pm
(Exercise 3: If You Get Lost)
What's Your Computer's Name? (hostname)
Make A Directory (mkdir)
screen shot 2016-08-29 at 1 36 48 pm
screen shot 2016-08-29 at 1 37 40 pm
Change Directory (cd)
screen shot 2016-08-29 at 1 54 32 pm
screen shot 2016-08-29 at 1 54 38 pm
List Directory (ls) (sorry this is a long one...)
screen shot 2016-08-29 at 2 01 34 pm
screen shot 2016-08-29 at 2 01 43 pm
screen shot 2016-08-29 at 2 01 50 pm
screen shot 2016-08-29 at 2 02 04 pm
screen shot 2016-08-29 at 2 02 20 pm

@lucyconklin
Copy link
Author

lucyconklin commented Aug 30, 2016

Day 2 part 2

E - Codecademy Learn the Command Line
Unit 1 - Navigating the File System
codecademy_q1
codecademy_unit_1

Unit 2 - Viewing and Changing the File System
codecademy_q2
codecademy_unit_2

F - Option 2 (I'm not really feeling overwhelmed, but I have the time so I figured a little bit of practice couldn't hurt
screen shot 2016-08-29 at 7 03 12 pm
screen shot 2016-08-29 at 7 11 40 pm
screen shot 2016-08-29 at 7 19 37 pm

@lucyconklin
Copy link
Author

Day 3
A - typing practice
screen shot 2016-08-30 at 3 14 19 pm
screen shot 2016-08-30 at 3 15 59 pm
screen shot 2016-08-30 at 3 18 27 pm

B - Brilliant Quizzes: Graphs
screen shot 2016-08-30 at 3 29 15 pm

E - Codecademy Command Line: Redirecting Input and Output
screen shot 2016-08-30 at 11 26 02 am
screen shot 2016-08-30 at 11 46 20 am

F - Railsbridge Ruby: irb and Running Programs from a File
screen shot 2016-08-30 at 2 44 15 pm

@lucyconklin
Copy link
Author

lucyconklin commented Sep 1, 2016

Day 4
A - typing practice
screen shot 2016-08-31 at 4 18 30 pm
screen shot 2016-08-31 at 4 23 04 pm
screen shot 2016-08-31 at 4 26 30 pm

B - Brilliant Quizzes (switched to logic puzzles)
screen shot 2016-08-31 at 4 46 04 pm

E - Command Line: Configuring the Environment
screen shot 2016-08-31 at 5 01 27 pm
screen shot 2016-08-31 at 5 11 44 pm

F - Ruby: Variables and Datatypes
screen shot 2016-08-31 at 9 01 49 pm
screen shot 2016-08-31 at 9 02 00 pm
screen shot 2016-08-31 at 9 02 07 pm
screen shot 2016-08-31 at 9 02 16 pm

@lucyconklin
Copy link
Author

lucyconklin commented Sep 28, 2016

And I'm Back! Day 5
A - typing practice
screen shot 2016-09-27 at 5 47 28 pm
screen shot 2016-09-27 at 5 43 25 pm
screen shot 2016-09-27 at 5 38 34 pm

B - brilliant quizzes, I ran out of computer science quizzes, and the coding ones were beyond me so I switched to logic
screen shot 2016-09-27 at 6 07 55 pm

E - command line, Codecademy (completed)

F - Railsbridge, "Strings"
screen shot 2016-09-27 at 6 27 24 pm

@lucyconklin
Copy link
Author

lucyconklin commented Sep 30, 2016

Day 6

A - typing practice
screen shot 2016-09-29 at 10 11 24 pm
screen shot 2016-09-29 at 10 08 43 pm
screen shot 2016-09-29 at 10 06 42 pm
screen shot 2016-09-29 at 10 04 29 pm
screen shot 2016-09-29 at 10 01 56 pm
screen shot 2016-09-29 at 9 59 03 pm

B - Brilliant Quizzes
screen shot 2016-09-29 at 10 38 55 pm

F - Input and Output
screen shot 2016-09-29 at 11 50 40 pm

I/O -
Uploading Screen Shot 2016-09-29 at 11.52.47 PM.png…

@lucyconklin
Copy link
Author

lucyconklin commented Oct 2, 2016

A - typing
screen shot 2016-10-02 at 12 16 19 pm
screen shot 2016-10-02 at 12 11 10 pm
screen shot 2016-10-02 at 12 05 44 pm

B - Brilliant Quizzes
screen shot 2016-10-02 at 12 26 56 pm

F - Numbers And Arithmetic,
"Numbers"
screen shot 2016-10-02 at 10 49 54 am

"Conditionals"
screen shot 2016-10-02 at 12 01 08 pm

Wishing I could tinker with the challenge exercise more, but here is a good start:
screen shot 2016-10-02 at 2 13 46 pm
obviously the issue is that numbers[0] == 0 so the multiplication and division won't work, and I don't know quite enough to implement a for loop or something.

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