Skip to content

Instantly share code, notes, and snippets.

@markyv18
Forked from mbburch/prework.md
Last active November 28, 2016 16:59
Show Gist options
  • Save markyv18/8a4feed37cbed77485a81a374940e488 to your computer and use it in GitHub Desktop.
Save markyv18/8a4feed37cbed77485a81a374940e488 to your computer and use it in GitHub Desktop.
An example template for your Turing pre-work Gist

Turing School Prework - MVA

Task A- Practice Typing:

Missed the first one but did remember the score for it, that is posted in comments alongside the subsequent other challenge's screenshots

Task B- Algorithmic Thinking & Logic:

DONEZO. Sadly... those were fun, wish there were more (FWIW, 100% on all)

Task C- Create your Gist:

Well, since i'm typing here on it..... :)

Task D- Set up your Environment:

  • Did you run into any issues?
  • How do you open Atom from your Terminal?
  • What is the file extension for a Ruby file?
  • What is the Atom shortcut for hiding/ showing your file tree view?
  • What is the Atom shortcut for quickly finding a file (fuzzy finder)?

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?
  • What does hostname tell you, and what shows up in YOUR terminal when you type hostname?

Task F- Learn Ruby:

Option 1 Questions:

IRB

  • How do you start and stop irb?
  • What might you use irb for?

Variables

  • How do you create a variable?
  • What did you learn about the rules for naming variables?
  • How do you change the value of a variable?

Datatypes

  • How can you find out the class of a variable?
  • What are two string methods?
  • How can you change an integer to a string?

Strings

  • Why might you use double quotes instead of single quotes in Ruby?
  • What is this used for in Ruby: #{}?
  • How would you remove all the vowels from a string?

Input & Output

  • What do 'print' and 'puts' do in Ruby?
  • What does 'gets' do in Ruby?
  • 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?
  • 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?
    • ==
    • =

    • <=
    • !=
    • &&
    • ||
  • What are two Ruby methods that return booleans?

Conditionals

  • What is flow control?
  • What will the following code return?
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?
  • 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?
  • 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?
  • What are you most looking forward to learning more about?
  • What topics would you most like to see reinforced by instructors?
  • What is most confusing to you about what you've learned?
  • What questions do you have for your student mentor or for your instructors?

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"?
@markyv18
Copy link
Author

typing io lesson 2
typing io lesson 3

@markyv18
Copy link
Author

markyv18 commented Nov 10, 2016

I'm assuming this is labrynth liberation??

labrynth escape 100

@markyv18
Copy link
Author

typing io lesson 4

@markyv18
Copy link
Author

typing io lesson 5

@markyv18
Copy link
Author

screen shot 2016-11-10 at 4 37 59 pm

@markyv18
Copy link
Author

Does this mean i did them all??

screen shot 2016-11-10 at 5 46 15 pm

@markyv18
Copy link
Author

Question: in the computer science section of brilliant I performed the quizzes associated with the link in the pre work and then got kicked out. Planning on tinkering around with others under that umbrealla but wondering which ones are "mandatory"? Gracias.

@markyv18
Copy link
Author

typing lesson 8
typing lesson 7
typing lesson 6

@markyv18
Copy link
Author

Typing lesson 10
typing lesson 10

Typing lesson 9
typing lesson 9

@markyv18
Copy link
Author

markyv18 commented Nov 15, 2016

Task D

  • Did you run into any issues?
    Yup, had Xcode 7.3 on the machine, needed to get 8.1. home brew in the terminal told me this
    -also got "unbrewed header files" galore but from what I can tell (and homebrew tells me) not going to worry about it at the moment.

  • 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?
    "apple/command \ "

  • What is the Atom shortcut for quickly finding a file (fuzzy finder)?
    "apple/command t"

@markyv18
Copy link
Author

Task D

screen shot 2016-11-15 at 4 11 17 pm

@markyv18
Copy link
Author

EMPATHY!!!!!!!!!!!!!!!

I’m intimately familiar with cognitive empathy. I’ve spent the last 10 years coaching people to achieve their highest performance, I am constantly attempting to see the world through their point of view and walk a mile in their shoes. By doing so I can better design the training plan and the underlying physiological adaptations to best suit their life and schedule. This seems most applicable in terms of designing a program/app/software with the goal of improving the user’s function/interaction and end product from the experience. I’ve had a few athletes work as software engineers on coaching apps and they’ve engaged me in this attempt to better understand how my work flow operates and have this guide them in their design of a product. While not as prevalent in the human performance engineering scenario (most of my athletes have tended to be Type-A robots ;), compassionate empathy has at times come into the picture as people struggle with balancing the life package with the goals they have set for themselves. Understanding and responding to this struggle gives them hope and confidence that you are on their side and fighting for them. Aside from my wife, i try to limit any emotional empathy for fear that i’ll get mired in the feelings and not move on toward action. While not necessarily a professional setting, I struggle most with empathy when dealing with civic issues and making our town/city a better place. This has manifested itself lately in having to deal with opponents that have a litany of advantages yet cannot see past the end of their own nose. Attempting to devise something, anything that will convince them that change, density, more housing, bike lanes, bike paths, less cars, more transit, increased services are good things has proven difficult when the opponent has zero desire to branch out from their own circle. The stra-te-gery will continue.

  • Describe a situation in which your ability to empathize with a colleague or teammate was helpful.
    Ha :) Every.single.day. Can’t make bike workout in the evening cuz of kid soccer practice, “don’t worry, that’s okay, we’ll shuffle the schedule” I’m not getting the hours of training in that i want to “here let me address that concern with 3 articles from the literature suggesting that worrying is worse on your performance then 3 less hours of training per week.” (gross simplification).

@markyv18
Copy link
Author

Typing 11

typing lesson 11

@markyv18
Copy link
Author

Task E

What does pwd stand for, and how is this command helpful?
present working directory

What does hostname tell you, and what shows up in YOUR terminal when you type hostname?
marks-MacBook-Air.local

@markyv18
Copy link
Author

Typing 12

typing 12

@markyv18
Copy link
Author

Task E Command Line/Terminal work on codeacademy

screen shot 2016-11-18 at 10 17 47 pm

@markyv18
Copy link
Author

Task E screen shot 2016-11-21 at 2 16 46 pm

@markyv18
Copy link
Author

Typing Lesson 12

typing lesson 12

@markyv18
Copy link
Author

Bonus jQuery typing work

typing jquery 1
typing jquery 2

@markyv18
Copy link
Author

IRB

How do you start and stop irb?
irb and exit

What might you use irb for?
interacting with ruby thru the terminal and executing/running a file

How do you create a variable?
assign a value via "=" to a variable name that meets the requirements for a ruby variable name
What did you learn about the rules for naming variables?
numbers at start a no go, as are "-"
How do you change the value of a variable?
reassign the value to it via direct interaction or a function

How can you find out the class of a variable?
.class
What are two string methods?
:send, :object_id

How can you change an integer to a string?
5.to_s

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

What do 'print' and 'puts' do in Ruby?
puts-returns a value and returns a new line|||| prints offers a prompt on the return line
What does 'gets' do in Ruby?
gets user input
Add a screenshot in the comments of the program you created that uses 'puts' and 'gets', and give it the title, "I/O".

I/O
screen shot 2016-11-28 at 7 57 24 am

Were you able to get through the work? Did you rush to finish, or take your time?
**Did not rush but also misjudged total volume of work **
What are you most looking forward to learning more about?
everything - seriously
What topics would you most like to see reinforced by instructors?
i think it's mostly just remembering the myriad of tools that can be used. knowing whether i've got the logic to solve stuff might reveal itself after that
What is most confusing to you about what you've learned? '> vs "> in irb. :)

@markyv18
Copy link
Author

Numbers & Arithmetic

What is the difference between integers and floats?
float has multiple decimal places, integer is the whole number only

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?
== equal

= greater than or equal
<= less than or equal
!= not true - opposite of return
&& and
|| or

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