Skip to content

Instantly share code, notes, and snippets.

@ericweissman
Last active January 1, 2024 08:55
Show Gist options
  • Save ericweissman/875e144c4d4334f9bdf04380d1211851 to your computer and use it in GitHub Desktop.
Save ericweissman/875e144c4d4334f9bdf04380d1211851 to your computer and use it in GitHub Desktop.

Session 1 Practice Tasks

The assignments listed here should take you approximately 60 minutes.

CAREFULLY READ ALL THE INSTRUCTIONS BEFORE STARTING THESE EXERCISES!

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

1. Markdown Practice (20 min)

Your task: create a "Beginners Guide to Data Types" documenting your knowledge of data types so far using Markdown.

Markdown (.md) is the format all of your homework gists are written in.

Using this markdown cheatsheet, create a new gist of your own by clicking the New Gist button in the upper right-hand corner of the screen.

In the box to title your Gist, be sure to use follow this format: firstName_lastName_markdownPractice.md

NOTE: Remember to add a .md file extension to filename of your new Gist. Otherwise it will not register as markdown.

In addition to documenting your knowledge of data types, incorporate each of the following features into your Gist:

  • at least two headings of different sizes
  • at least one numbered list
  • at least one bullet point list
  • at least one bold word/phrase
  • at least one italic word/phrase
  • at least one code block (in Javascript for Frontend or in Ruby for Backend)
  • at least one inline code block (greyed text)
  • at least one image
  • ⚡️ TURN THIS SENTENCE INTO A LINK TO YOUR GIST ⚡️

2. Documentation and Googling (20 min)

Documentation of a language, framework, or tool is the information that describes its functionality. For this part of the practice tasks, you're going to practice digging into documentation and other reference material.

NOTE: Remember to look for the docs! MDN for javascript and ruby-doc for ruby.

  • In your own words, what does the JavaScript/Ruby string method split() do (pick based on your program)? Try writing a code example and explain how it works! You can use tools like irb for Ruby, the console for Javascript, or create a repl.it to experiment with your code.

  • 🌀 Write your answer in BOLD here 🌀

  • What did you Google to help you with this task, and how did you pick your results?

  • 🌀 Write your answer in BOLD here 🌀

3. Data Types and variable assignment (20 min)

Imagine that you're taking your favorite board game and turning it into a computer-based game.

  • Name of board game: Your game goes here

  • Use the space below to categorize game data into each of the following data types. You should have a minimum of two variables assigned for each data type below. Feel free to break each variable declaration on to its own line. Pick either ruby or javascript based on your program.

If you're stuck, REFER BACK TO SESSION 1 and use this example of Restaurant data as a guide.

// in Javascript
var name = "Rainforest Cafe"
var maximumCapacity = 145
var isOpen = true
var menus = ["Breakfast", "Lunch", "Dinner", "Deserts", "Drinks"]

# in Ruby
name = "Bethesda Crab House"
maximum_capacity = 40
is_open = true
menus = ["Crabs", "Other Seafood", "Sides", "Drinks"]
  1. String data:
Add at least 2 string examples here
  1. Integer and/or float data
Add at least 2 integer/float examples here
  1. Boolean data
Add at least 2 boolean examples here
  1. Array data
Add at least 2 array examples here
  1. OPTIONAL: Hash or Object data
Add at least 2 hash/object examples here

4. Self Assess

Using the rubric below, assess how you did with these exercises. These are the same metrics your instructors will use to determine if you are prepared for Mod 1!

  • I carefully read ALL directions
  • I completed all parts of the exercises (not including Extensions) to the best of my ability
  • I used correct syntax, spacing and naming conventions
  • I followed ALL formatting instructions
  • I pushed myself out of my comfort zone and experimented/broke things to try to learn
  • I spent no longer than 20-30 mins Googling a specific problem before asking for help
  • I went back to the lesson to search for clarification before asking for help

Stuck? Having Issues?

Are you stuck on something? Here is the BEST way to ask for help:

  • Find the Session 1 HW Thread in your Mod 0 Slack channel
  • Start or reply in the thread with the problem you are facing. Be sure to follow the guidelines for asking questions below:
    • I can explain what I am trying to do or accomplish
    • I can what I have tried so far and/or what resources I've tried online
    • I can describe specifically what I am stuck on
    • I provided screenshots and/or code examples to give context
      • If I provided short code examples, I used inline code formatting for single lines of code/error messages
      • If I provided larger blocks of code, I used a code snippet in the correct format (such as .js or .rb)
  • Usually, your classmates will be able to answer your question or point you in the right direction very quickly! If not, an instructor will reply within 24-48 hours
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment