Forked from rwarbelow/mod_0_session_2_practice_tasks.md
Last active
June 30, 2019 23:40
-
-
Save grwthomps/c3336e1feb3f05d25f852a610d3ce0cf to your computer and use it in GitHub Desktop.
Revisions
-
grwthomps revised this gist
Jun 30, 2019 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -47,15 +47,15 @@ console.log(penguin.slice(0, 3)); Imagine that you're taking your favorite board game and turning it into a computer-based game. - [x] Name of board game: Monopoly - [x] Use the space below to categorize game data into each of the following data types. You should have a **minimum of two** pieces of data for each category. 1. String data: text printed on the board (e.g. “St. Charles Place” or “Virginia Avenue”); text printed on chance cards (e.g. “Bank pays you a dividend of $50”) 1. Integer and/or float data: number on dice; value of money 1. Boolean data: landing on or passing “go to jail” space; rolling doubles or not rolling doubles 1. Array data: collection of money received by each player at the beginning of the game; property card collection held by a player during the game 1. Hash or Object data: property card and corresponding space on the board; dice number rolled and number of spaces moved by the player ### 3. Iteration (30 min) -
grwthomps revised this gist
Jun 30, 2019 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -89,7 +89,7 @@ end</td> <td>students.each do |student|<br> puts "Welcome, #(student)"<br> end</td> <td>The problem is the wrong type of brackets were used.</td> </tr> <tr> <td>.main-content { <br> @@ -102,17 +102,17 @@ end</td> border: 3px solid black;<br> font-family: sans serif;<br> }</td> <td>The problem is the hyphen in 'sans-serif' is missing.</td> </tr> <tr> <td>log(2, (1022 * ((score - min(score) over ()) / ((max(score) over ()) - (min(score) over ()))) + 2)::numeric)</td> <td>log(2, (1022 * ((score - min(score) over ()) / ((min(score) over ()) - (min(score) over ()))) + 2)::numeric)</td> <td>The problem is 'min' is used twice instead of 'max' and 'min'.</td> </tr> <tr> <td>arr.product(arr).reject { |a,b| a == b }.any? { |a,b| a + b == n }</td> <td>arr.product(arr).reject { |a,b| b == b }.any? { |a,b| a + b == n }</td> <td>The problem is 'b == b' instead of 'a == b'.</td> </tr> <tr> <td>class Cat<br> @@ -129,7 +129,7 @@ end</td> @color = data[:color]<br> end<br> end</td> <td>The problem is 'initialize' is spelled incorrectly.</td> </tr> </tbody> </table> -
grwthomps revised this gist
Jun 30, 2019 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -60,15 +60,15 @@ Imagine that you're taking your favorite board game and turning it into a comput ### 3. Iteration (30 min) - [x] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - `Folding clothes:` You take one piece of clothing from the pile (or collection), fold it, and put it in a drawer (i.e. do something to it). Then you repeat the process for the next piece of clothing. This is an iteration because you are repeating the same process for each item in a collection. - `Sorting pictures by date:` You take one from the pile, look at the date it was taken, and put it in a corresponding spot. Then you repeat the process by taking another picture from the pile. This is an iteration because you are repeating the same process for each item in a collection. - `Placing items from shopping cart on conveyor belt:` You take one item from the cart, place it on the belt, and then proceed to do the same action to the next item. This is an iteration because you are repeating the same process for each item in a collection. - [x] Create a list below of **three programming situations** where iteration would be used. For each situation, explain why it would be an example of iteration. - `Appending the file names of all the files in a folder:` For each file in the folder (the collection), a string is added to the filename. Then the action is repeated on the next file. The same process is being repeated for every item in a collection, making it an example of iteration. - `Playing songs in a playlist:` Each song in the playlist is played before moving on to the next song. This is an iteration because the same task is being performed for each item in the collection. - `Copying files from one folder to another:` For each file, the data is copied to another folder before moving on to the next file. The same task is performed on each item in the collection, making it an iteration. ### 4. Identifying Mistakes (15 min) The following code examples each contain a mistake. Describe the problem for each. @@ -89,7 +89,7 @@ end</td> <td>students.each do |student|<br> puts "Welcome, #(student)"<br> end</td> <td>The problem is *the wrong type of brackets were used.*</td> </tr> <tr> <td>.main-content { <br> @@ -102,17 +102,17 @@ end</td> border: 3px solid black;<br> font-family: sans serif;<br> }</td> <td>The problem is *the hyphen in 'sans-serif' is missing.*</td> </tr> <tr> <td>log(2, (1022 * ((score - min(score) over ()) / ((max(score) over ()) - (min(score) over ()))) + 2)::numeric)</td> <td>log(2, (1022 * ((score - min(score) over ()) / ((min(score) over ()) - (min(score) over ()))) + 2)::numeric)</td> <td>The problem is *'min' is used twice instead of 'max' and 'min'.*</td> </tr> <tr> <td>arr.product(arr).reject { |a,b| a == b }.any? { |a,b| a + b == n }</td> <td>arr.product(arr).reject { |a,b| b == b }.any? { |a,b| a + b == n }</td> <td>The problem is *'b == b' instead of 'a == b'.*</td> </tr> <tr> <td>class Cat<br> @@ -129,7 +129,7 @@ end</td> @color = data[:color]<br> end<br> end</td> <td>The problem is *'initialize' is spelled incorrectly.*</td> </tr> </tbody> </table> -
grwthomps revised this gist
Jun 30, 2019 . 1 changed file with 39 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,44 +10,64 @@ Documentation of a langauge, framework, or tool is the information that describe **NOTE:** The linked documentation for each question below is a good starting place, but you should also be practicing your Googling skills and sifting through the results to find relevant and helpful sites. - [x] In your own words, what does the Ruby array [drop](https://ruby-doc.org/core-2.4.0/Array.html#method-i-drop) method do? As you're explaining, be sure to provide an example. Your answer: *The ruby array drop method will drop (or discard) n number of elements from an array and return the remainder of the array.* ``` numbers = [1, 2, 3, 4, 5, 6] numbers.drop(3) #=> [4, 5, 6] ``` - [x] What did you Google to help you with this task, and how did you pick your results? *I googled “ruby array drop method” and took a look at the first four results. Three of four results had similar answers and one result was not applicable. On one result’s page, I had to use cmd+f to find the applicable content on the page.* - [x] In your own words, what does the Ruby string [split](https://ruby-doc.org/core-2.4.0/String.html#method-i-split) method do? As you're explaining, be sure to provide an example. Your answer: *The ruby split string method will split (or separate) a given string into an array. How it splits the string can be determined by the argument passed within the method.* ``` str = “this is a string” p str.split #=> ["this", "is", "a", “string"] p str.split(//) #=> [“t”, "h", "i", "s", " ", "i", "s", " ", "a", " ", "s", "t", "r", "i", "n", "g"] ``` - [x] What did you Google to help you with this task, and how did you pick your results? *I googled “ruby split string method examples” but was not understanding while reading the results. So I went to YouTube and searched “ruby split string method” and found a helpful video of someone explaining the method by doing a couple of examples, which made it much clearer.* - [x] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: *The Javascript array slice method copies an existing array and alters the copy by removing certain elements. Which elements are removed is specified by the argument used in the method. Note that the original array is not altered by the returned array.* ``` var penguin = ['african', 'chinstrap', 'emperor', 'king', 'gentoo'] console.log(penguin.slice(3)); > Array ["king", “gentoo"] console.log(penguin.slice(0, 3)); > Array ["african", "chinstrap", “emperor"] ``` - [x] What did you Google to help you with this task, and how did you pick your results? *I was actually able to grasp this one well enough without googling.* ### 2. Data Types (15 min) Imagine that you're taking your favorite board game and turning it into a computer-based game. - [x] Name of board game: *Monopoly* - [x] Use the space below to categorize game data into each of the following data types. You should have a **minimum of two** pieces of data for each category. 1. String data: *text printed on the board (e.g. “St. Charles Place” or “Virginia Avenue”); text printed on chance cards (e.g. “Bank pays you a dividend of $50”)* 1. Integer and/or float data: *number on dice; value of money* 1. Boolean data: *landing on or passing “go to jail” space; rolling doubles or not rolling doubles* 1. Array data: *collection of money received by each player at the beginning of the game; property card collection held by a player during the game* 1. Hash or Object data: *property card and corresponding space on the board; dice number rolled and number of spaces moved by the player* ### 3. Iteration (30 min) - [x] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - - - - [x] Create a list below of **three programming situations** where iteration would be used. For each situation, explain why it would be an example of iteration. - `Folding clothes:` You take one piece of clothing from the pile (or collection), fold it, and put it in a drawer (i.e. do something to it). Then you repeat the process for the next piece of clothing. This is an iteration because you are repeating the same process for each item in a collection. - `Sorting pictures by date:` You take one from the pile, look at the date it was taken, and put it in a corresponding spot. Then you repeat the process by taking another picture from the pile. This is an iteration because you are repeating the same process for each item in a collection. - `Placing items from shopping cart on conveyor belt:` You take one item from the cart, place it on the belt, and then proceed to do the same action to the next item. This is an iteration because you are repeating the same process for each item in a collection. ### 4. Identifying Mistakes (15 min) @@ -116,7 +136,7 @@ end</td> ### 5. Modify your Bash Profile (10 min) - [x] Watch [this video](https://drive.google.com/file/d/1s_CDBnxHSA0HDWldjosulthAvBi-C-d5/view?usp=sharing) and follow each step to modify your own bash profile. As mentioned in the video, you will need this snippet below: ``` # get current branch in git repo -
rwarbelow revised this gist
May 22, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Imagine that you're taking your favorite board game and turning it into a comput ### 4. Identifying Mistakes (15 min) The following code examples each contain a mistake. Describe the problem for each. <table> <thead> -
rwarbelow revised this gist
May 22, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -51,6 +51,8 @@ Imagine that you're taking your favorite board game and turning it into a comput ### 4. Identifying Mistakes (15 min) The following code examples each contain a mistake (that is, a missing, changed, or additional character). Describe the problem for each. <table> <thead> <tr> -
rwarbelow revised this gist
May 22, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Imagine that you're taking your favorite board game and turning it into a comput - - ### 4. Identifying Mistakes (15 min) <table> <thead> -
rwarbelow revised this gist
May 22, 2019 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -56,6 +56,7 @@ Imagine that you're taking your favorite board game and turning it into a comput <tr> <th>Original</th> <th>Mistakes</th> <th>Problem</th> </tr> </thead> <tbody> @@ -66,6 +67,7 @@ end</td> <td>students.each do |student|<br> puts "Welcome, #(student)"<br> end</td> <td>The problem is...</td> </tr> <tr> <td>.main-content { <br> @@ -78,14 +80,17 @@ end</td> border: 3px solid black;<br> font-family: sans serif;<br> }</td> <td>The problem is...</td> </tr> <tr> <td>log(2, (1022 * ((score - min(score) over ()) / ((max(score) over ()) - (min(score) over ()))) + 2)::numeric)</td> <td>log(2, (1022 * ((score - min(score) over ()) / ((min(score) over ()) - (min(score) over ()))) + 2)::numeric)</td> <td>The problem is...</td> </tr> <tr> <td>arr.product(arr).reject { |a,b| a == b }.any? { |a,b| a + b == n }</td> <td>arr.product(arr).reject { |a,b| b == b }.any? { |a,b| a + b == n }</td> <td>The problem is...</td> </tr> <tr> <td>class Cat<br> @@ -102,6 +107,7 @@ end</td> @color = data[:color]<br> end<br> end</td> <td>The problem is...</td> </tr> </tbody> </table> -
rwarbelow revised this gist
May 22, 2019 . 1 changed file with 59 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ The assignments listed here should take you approximately 2 hours. To start this assignment, click the button in the upper right-hand corner that says **Fork**. This is now your copy of the document. Click the **Edit** button when you're ready to start adding your answers. 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. Documentation and Googling (60 min) Documentation of a langauge, 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. @@ -14,10 +14,6 @@ Documentation of a langauge, framework, or tool is the information that describe - [ ] What did you Google to help you with this task, and how did you pick your results? - [ ] In your own words, what does the Ruby string [split](https://ruby-doc.org/core-2.4.0/String.html#method-i-split) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] What did you Google to help you with this task, and how did you pick your results? @@ -26,10 +22,6 @@ Documentation of a langauge, framework, or tool is the information that describe - [ ] What did you Google to help you with this task, and how did you pick your results? ### 2. Data Types (15 min) @@ -57,7 +49,64 @@ Imagine that you're taking your favorite board game and turning it into a comput - - ### 4. Identifying Mistakes (10 min) <table> <thead> <tr> <th>Original</th> <th>Mistakes</th> </tr> </thead> <tbody> <tr> <td>students.each do |student|<br> puts "Welcome, #{student}"<br> end</td> <td>students.each do |student|<br> puts "Welcome, #(student)"<br> end</td> </tr> <tr> <td>.main-content { <br> font-size: 12px;<br> border: 3px solid black;<br> font-family: sans-serif;<br> }</td> <td>.main-content { <br> font-size: 12px;<br> border: 3px solid black;<br> font-family: sans serif;<br> }</td> </tr> <tr> <td>log(2, (1022 * ((score - min(score) over ()) / ((max(score) over ()) - (min(score) over ()))) + 2)::numeric)</td> <td>log(2, (1022 * ((score - min(score) over ()) / ((min(score) over ()) - (min(score) over ()))) + 2)::numeric)</td> </tr> <tr> <td>arr.product(arr).reject { |a,b| a == b }.any? { |a,b| a + b == n }</td> <td>arr.product(arr).reject { |a,b| b == b }.any? { |a,b| a + b == n }</td> </tr> <tr> <td>class Cat<br> attr_reader :color, :name<br> def initialize(data)<br> @name = data[:name]<br> @color = data[:color]<br> end<br> end</td> <td>class Cat<br> attr_reader :color, :name<br> def intialize(data)<br> @name = data[:name]<br> @color = data[:color]<br> end<br> end</td> </tr> </tbody> </table> ### 5. Modify your Bash Profile (10 min) - [ ] Watch [this video](https://drive.google.com/file/d/1s_CDBnxHSA0HDWldjosulthAvBi-C-d5/view?usp=sharing) and follow each step to modify your own bash profile. As mentioned in the video, you will need this snippet below: -
rwarbelow revised this gist
Feb 18, 2019 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -47,8 +47,6 @@ Imagine that you're taking your favorite board game and turning it into a comput ### 3. Iteration (30 min) - [ ] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - - -
rwarbelow revised this gist
Feb 15, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -111,7 +111,7 @@ function parse_git_dirty { fi } export PS1="\u\w\`parse_git_branch\`$ " ``` ### 5. Questions/Comments/Confusions -
rwarbelow revised this gist
Feb 15, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -111,7 +111,7 @@ function parse_git_dirty { fi } export PS1="\u\w\`parse_git_branch\` $ " ``` ### 5. Questions/Comments/Confusions -
rwarbelow revised this gist
Feb 14, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -59,7 +59,7 @@ Imagine that you're taking your favorite board game and turning it into a comput - - ### 4. Modify your Bash Profile (10 min) - [ ] Watch [this video](https://drive.google.com/file/d/1s_CDBnxHSA0HDWldjosulthAvBi-C-d5/view?usp=sharing) and follow each step to modify your own bash profile. As mentioned in the video, you will need this snippet below: -
rwarbelow revised this gist
Feb 14, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -61,7 +61,7 @@ Imagine that you're taking your favorite board game and turning it into a comput ### 4. Modify your Bash Profile (15 min) - [ ] Watch [this video](https://drive.google.com/file/d/1s_CDBnxHSA0HDWldjosulthAvBi-C-d5/view?usp=sharing) and follow each step to modify your own bash profile. As mentioned in the video, you will need this snippet below: ``` # get current branch in git repo -
rwarbelow revised this gist
Feb 14, 2019 . 1 changed file with 52 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -61,7 +61,58 @@ Imagine that you're taking your favorite board game and turning it into a comput ### 4. Modify your Bash Profile (15 min) - [ ] Watch [this video]() and follow each step to modify your own bash profile. As mentioned in the video, you will need this snippet below: ``` # get current branch in git repo function parse_git_branch() { BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` if [ ! "${BRANCH}" == "" ] then STAT=`parse_git_dirty` echo "[${BRANCH}${STAT}]" else echo "" fi } # get current status of git repo function parse_git_dirty { status=`git status 2>&1 | tee` dirty=`echo -n "${status}" 2> /dev/null | grep "modified:" &> /dev/null; echo "$?"` untracked=`echo -n "${status}" 2> /dev/null | grep "Untracked files" &> /dev/null; echo "$?"` ahead=`echo -n "${status}" 2> /dev/null | grep "Your branch is ahead of" &> /dev/null; echo "$?"` newfile=`echo -n "${status}" 2> /dev/null | grep "new file:" &> /dev/null; echo "$?"` renamed=`echo -n "${status}" 2> /dev/null | grep "renamed:" &> /dev/null; echo "$?"` deleted=`echo -n "${status}" 2> /dev/null | grep "deleted:" &> /dev/null; echo "$?"` bits='' if [ "${renamed}" == "0" ]; then bits=">${bits}" fi if [ "${ahead}" == "0" ]; then bits="*${bits}" fi if [ "${newfile}" == "0" ]; then bits="+${bits}" fi if [ "${untracked}" == "0" ]; then bits="?${bits}" fi if [ "${deleted}" == "0" ]; then bits="x${bits}" fi if [ "${dirty}" == "0" ]; then bits="!${bits}" fi if [ ! "${bits}" == "" ]; then echo " ${bits}" else echo "" fi } export PS1="\u\w\`parse_git_branch\` " ``` ### 5. Questions/Comments/Confusions -
rwarbelow revised this gist
Feb 14, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -61,7 +61,7 @@ Imagine that you're taking your favorite board game and turning it into a comput ### 4. Modify your Bash Profile (15 min) - [ ] Watch [this video]() and follow each step to modify your own bash profile. ### 5. Questions/Comments/Confusions -
rwarbelow revised this gist
Feb 14, 2019 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -59,3 +59,12 @@ Imagine that you're taking your favorite board game and turning it into a comput - - ### 4. Modify your Bash Profile (15 min) Watch [this video]() and follow each step to modify your own bash profile. ### 5. Questions/Comments/Confusions If you have any questions, comments, or confusions from the any of the readings that you would an instructor to address, list them below: 1. -
rwarbelow revised this gist
Feb 14, 2019 . 1 changed file with 11 additions and 21 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,35 +10,25 @@ Documentation of a langauge, framework, or tool is the information that describe **NOTE:** The linked documentation for each question below is a good starting place, but you should also be practicing your Googling skills and sifting through the results to find relevant and helpful sites. - [ ] In your own words, what does the Ruby array [drop](https://ruby-doc.org/core-2.4.0/Array.html#method-i-drop) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] What did you Google to help you with this task, and how did you pick your results? - [ ] In your own words, what does the Ruby array [push](https://ruby-doc.org/core-2.4.0/Array.html#method-i-push) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] What did you Google to help you with this task, and how did you pick your results? - [ ] In your own words, what does the Ruby string [split](https://ruby-doc.org/core-2.4.0/String.html#method-i-split) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] What did you Google to help you with this task, and how did you pick your results? - [ ] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] What did you Google to help you with this task, and how did you pick your results? - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] What did you Google to help you with this task, and how did you pick your results? ### 2. Data Types (15 min) @@ -57,7 +47,7 @@ Imagine that you're taking your favorite board game and turning it into a comput ### 3. Iteration (30 min) - [ ] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! When you're done, take a photo of your diagram and post it in the Mod 0 channel on Slack. Your instructor(s) will provide feedback in a thread. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ - [ ] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Session 2 Practice Tasks The assignments listed here should take you approximately 2 hours. To start this assignment, click the button in the upper right-hand corner that says **Fork**. This is now your copy of the document. Click the **Edit** button when you're ready to start adding your answers. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist. -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,9 @@ The assignments listed here should take you approximately ___ total minutes. To start this assignment, click the button in the upper right-hand corner that says **Fork**. This is now your copy of the document. Click the **Edit** button when you're ready to start adding your answers. 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. Documentation and Googling (75 min) Documentation of a langauge, 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:** The linked documentation for each question below is a good starting place, but you should also be practicing your Googling skills and sifting through the results to find relevant and helpful sites. @@ -41,7 +41,7 @@ Your answer: What did you Google to help you with this task, and how did you pick your results? ### 2. Data Types (15 min) Imagine that you're taking your favorite board game and turning it into a computer-based game. @@ -55,7 +55,7 @@ Imagine that you're taking your favorite board game and turning it into a comput 1. Array data: 1. Hash or Object data: ### 3. Iteration (30 min) - [ ] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! This should *not* be the simple table that we used during the lesson. When you're done, take a photo of your diagram and send it to Rachel and Tim on Slack. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 15 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,36 +4,44 @@ The assignments listed here should take you approximately ___ total minutes. To start this assignment, click the button in the upper right-hand corner that says **Fork**. This is now your copy of the document. Click the **Edit** button when you're ready to start adding your answers. 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. Documentation Documentation of a langauge, 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. **NOTE:** The linked documentation for each question below is a good starting place, but you should also be practicing your Googling skills and sifting through the results to find relevant and helpful sites. - [ ] In your own words, what does the Ruby array [drop](https://ruby-doc.org/core-2.4.0/Array.html#method-i-drop) method do? As you're explaining, be sure to provide an example. Your answer: What did you Google to help you with this task, and how did you pick your results? - [ ] In your own words, what does the Ruby array [push](https://ruby-doc.org/core-2.4.0/Array.html#method-i-push) method do? As you're explaining, be sure to provide an example. Your answer: What did you Google to help you with this task, and how did you pick your results? - [ ] In your own words, what does the Ruby string [split](https://ruby-doc.org/core-2.4.0/String.html#method-i-split) method do? As you're explaining, be sure to provide an example. Your answer: What did you Google to help you with this task, and how did you pick your results? - [ ] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: What did you Google to help you with this task, and how did you pick your results? - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer: What did you Google to help you with this task, and how did you pick your results? ### 2. Data Types Imagine that you're taking your favorite board game and turning it into a computer-based game. @@ -47,7 +55,7 @@ Imagine that you're taking your favorite board game and turning it into a comput 1. Array data: 1. Hash or Object data: ### 3. Iteration - [ ] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! This should *not* be the simple table that we used during the lesson. When you're done, take a photo of your diagram and send it to Rachel and Tim on Slack. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,11 +4,11 @@ The assignments listed here should take you approximately ___ total minutes. To start this assignment, click the button in the upper right-hand corner that says **Fork**. This is now your copy of the document. Click the **Edit** button when you're ready to start adding your answers. 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. Googling [Need ideas] ### 2. Documentation Documentation of a langauge, 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. **If you're reading the documentation and come across terminology or examples that don't make sense, Google!** @@ -33,7 +33,7 @@ Your answer: Your answer: ### 3. Data Types Imagine that you're taking your favorite board game and turning it into a computer-based game. @@ -47,7 +47,7 @@ Imagine that you're taking your favorite board game and turning it into a comput 1. Array data: 1. Hash or Object data: ### 4. Iteration - [ ] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! This should *not* be the simple table that we used during the lesson. When you're done, take a photo of your diagram and send it to Rachel and Tim on Slack. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Imagine that you're taking your favorite board game and turning it into a comput ### Iteration - [ ] On a blank sheet of paper, create a diagram that shows how you understand iteration working. Be detailed and get creative! This should *not* be the simple table that we used during the lesson. When you're done, take a photo of your diagram and send it to Rachel and Tim on Slack. _(If you're feeling extra fancy, feel free to create your diagram using software instead of pencil and paper)_ - [ ] Create a list below of **three real-life situations** where iteration is used. For each situation, explain why it would be an example of iteration. - -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,9 +37,9 @@ Your answer: Imagine that you're taking your favorite board game and turning it into a computer-based game. - [ ] Name of board game: ______ - [ ] Use the space below to categorize game data into each of the following data types. You should have a **minimum of two** pieces of data for each category. 1. String data: 1. Integer and/or float data: -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,7 +39,7 @@ Imagine that you're taking your favorite board game and turning it into a comput Name of board game: ______ Use the space below to categorize game data into each of the following data types. You should have a **minimum of two** pieces of data for each category. 1. String data: 1. Integer and/or float data: -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,17 @@ Your answer: ### Data Types Imagine that you're taking your favorite board game and turning it into a computer-based game. Name of board game: ______ Use the space below to categorize game data into each of the following data types: 1. String data: 1. Integer and/or float data: 1. Boolean data: 1. Array data: 1. Hash or Object data: ### Iteration -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ To start this assignment, click the button in the upper right-hand corner that s ### Googling [Need ideas] ### Documentation -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ To start this assignment, click the button in the upper right-hand corner that s Documentation of a langauge, 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. **If you're reading the documentation and come across terminology or examples that don't make sense, Google!** - [ ] In your own words, what does the Ruby array [drop](https://ruby-doc.org/core-2.4.0/Array.html#method-i-drop) method do? As you're explaining, be sure to provide an example. Your answer: -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ To start this assignment, click the button in the upper right-hand corner that s Documentation of a langauge, 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. **If you're reading the documentation and come across terminology or examples that don't make sense, Google!** - [x] In your own words, what does the Ruby array [drop](https://ruby-doc.org/core-2.4.0/Array.html#method-i-drop) method do? As you're explaining, be sure to provide an example. Your answer: -
rwarbelow revised this gist
Jan 21, 2019 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,18 +13,23 @@ To start this assignment, click the button in the upper right-hand corner that s Documentation of a langauge, 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. **If you're reading the documentation and come across terminology or examples that don't make sense, Google!** - [ ] In your own words, what does the Ruby array [drop](https://ruby-doc.org/core-2.4.0/Array.html#method-i-drop) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] In your own words, what does the Ruby array [push](https://ruby-doc.org/core-2.4.0/Array.html#method-i-push) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] In your own words, what does the Ruby string [split](https://ruby-doc.org/core-2.4.0/String.html#method-i-split) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] In your own words, what does the JavaScript array [slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) method do? As you're explaining, be sure to provide an example. Your answer: - [ ] In your own words, what does the JavaScript object [values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) method do? As you're explaining, be sure to provide an example. Your answer:
NewerOlder