Skip to content

Instantly share code, notes, and snippets.

@darthneel
Last active August 29, 2015 14:08
Show Gist options
  • Save darthneel/0258d8378657542208b2 to your computer and use it in GitHub Desktop.
Save darthneel/0258d8378657542208b2 to your computer and use it in GitHub Desktop.
Concepts and mechanics to prepare students for the first day of WDI

Pre-work Check in: Understanding Mechanics


###Questions to ask yourself:

Variables

  1. Can I define the term 'variable'?

  2. How do I set a variable in Ruby?

Strings and Integers

  1. What is a string?

  2. What is an Integer?

  3. Is 2 the same as "2"?

  4. How can I create a string in Ruby?

  5. How can I combine two different strings?

  • Hint: Google 'string concatenation ruby'
  1. How do I convert "2" into 2?

  2. How do I convert 2 into "2"?

Arrays and Hashes

  1. What is an Array?

  2. What is a Hash?

  3. What are the differences and similarities between Arrays and Hashes? How do we access their content?

  4. How do I create an Array in Ruby?

  5. How do I put things into an Array in Ruby?

  6. Once I put something into an Array, how do I take it back out?

  7. How do I put something into a Hash?

  8. Once I put something into a Hash, how do I take it back out?

  9. Why are Arrays and Hashes so useful?

  10. What are two different ways we can represent key/value pairs in a hash?

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