Skip to content

Instantly share code, notes, and snippets.

View Garrett-Iannuzzi's full-sized avatar

Garrett Iannuzzi Garrett-Iannuzzi

View GitHub Profile

Adding, Looping, & Removing

You are given an array of people that live in a neighborhood. You should have two functions, one that is able to add families to the neighborhood and another that is able to remove them based on the number passed through.

Ex:

var neighborhood = ['Addams Family', 'The Jetsons', 'The Simpsons', 'Full House'];
addFamily(neighborhood, 'The Griffins');

Our answer would be:

Project: Rancid Tomatillos

Group Member Names:

  • Scott Ertmer, Trisha Langlois and Garret Iannuzzi

Goals and Expectations for the Project (What does each group member hope to get out of this project? What do we want to achieve as a team? How will we know that we're successful?):

  • Scott: nested fetch, testing
  • Trisha: testing, Redux
  • Garrett: Redux, testing, nested fetch
  • Defining success for us will be imporving our knowledge of the learning goals...
@Garrett-Iannuzzi
Garrett-Iannuzzi / Do-The_Thing.md
Last active April 1, 2020 15:33
Do-it-do-it-now

Do the thing

  1. In the terminal run: npx create-react-app NAME-OF-APP
  2. Cd into the new directory: cd NAME-OF-APP
  3. Run: npm install.
  4. You can run npm start to see if the app was set up correctly.
@Garrett-Iannuzzi
Garrett-Iannuzzi / palette-picker.md
Last active February 3, 2020 21:25
Palette Picker

Group Member Names: John Adams and Garret Iannuzzi

Project: Palette Picker

Goals and Expectations for the Project (What does each group member hope to get out of this project? What do we want to achieve as a team? How will we know that we're successful?):

  • Finsih all requirnments
  • Learn BE testing
  • Further understanding of complete CRUD endpoints
  • Use two repos
@Garrett-Iannuzzi
Garrett-Iannuzzi / git2_0.md
Last active February 6, 2020 18:58
git 2.0
  • The command I will use on a daily basis form here on out is git rebase because I would like to be familiar with this workflow incase my future employer uses it.
  • Rebasing will re order your commit log in order to keep it more percise. The workflow is a lot similar but once you have a new feature you are ready to push you git pull --rebase origin master
  • We could use git stash when we want ignore the changes we made and checkout of that branch.
  • Git reset is about updating your branch, moving the tip in order to add or remove commits from the branch. This operation changes the commit history. --soft does not touch the index file or the working tree at all. --hard Resets the index and working tree.
# Typescript Overview
## Why TS?
JavaScript is notoriously lenient in its loosely typed structure which
can cause unexpected bugs that are difficult to track down. TypeScript solves
this problem by throwing an error at compile time when defined types don't match
what is being passed around.
This also eliminates the need for boilerplate tests that simply verify that a function/component receives a prop or argument of the expected type and returns the expected type of value (or lack thereof).