Skip to content

Instantly share code, notes, and snippets.

@saberg1
Forked from ericweissman/mod0_session1_exercises.md
Last active January 11, 2021 02:41
Show Gist options
  • Save saberg1/127a856008cb36ac0a79a473758493ba to your computer and use it in GitHub Desktop.
Save saberg1/127a856008cb36ac0a79a473758493ba to your computer and use it in GitHub Desktop.
Steven_Berg_markdownPractice.md

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

Heading1

Heading 2

  • at least one numbered list
  1. numberlisted
  • at least one bullet point list

⋅⋅* bulletes

  • at least one bold word/phrase

This word will be bold

  • at least one italic word/phrase

If that worked, then this word should be italicized

  • at least one code block (in Javascript for Frontend or in Ruby for Backend)
am i writing in a code block?
  • at least one inline code block (greyed text)

I'm writing this to have inline code in this sentence

  • at least one image

picture of something: alt text

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)? As you're explaining, be sure to provide an example.
  • 🌀 Write your answer in BOLD here 🌀

The split method is used to split information into an array of substrings

  • What did you Google to help you with this task, and how did you pick your results?
  • 🌀 Write your answer in BOLD here 🌀

I googled “What does javascript string method split() do?” I just chose the first one from w3 and read about it.

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: Monopoly

  • 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

Park Place
Community Chest
  1. Integer and/or float data
Add at least 2 integer/float examples here

75$
150$
  1. Boolean data
Add at least 2 boolean examples here

Did you pass go?
Did you land on "Go to Jail"?
  1. Array data
Add at least 2 array examples here

[12, 34, 64, 17]
[Pacific Ave, North Carolina Ave, Pennsylvania Ave]
  1. OPTIONAL: Hash or Object data
Add at least 2 hash/object examples here

Community Chest Cards, Chance Cards

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
@mschae16
Copy link

mschae16 commented Jan 11, 2021

@StevenTheBearded - I think this is a good start to this assignment, but I would definitely encourage you to take another pass at this. As we mentioned in class several times, attention to detail is an extremely important skill to master as you begin your technical career. Now that you have the experience of a few more class sessions, why not go back and re-read the instructions in this assignment and see if there are any exercises here that you'd like to update and refactor.

For example, in section 1 the instructions ask you to create a new gist documenting all you have learned about different data types and to practice using your markdown skills. That separate gist should be included as a link in this one. Additionally, when it comes to variable declaration in Javascript, the var keyword is very important. Be sure to take a look at the syntax in the Restaurant data example and try to model your variable declaration based on that:

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

Let me know once this is updated, and if you have any questions!

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