Skip to content

Instantly share code, notes, and snippets.

Instructions

  1. Fork this gist, then "edit" the gist
  2. Fill out the questions below
  3. Click the "Add file" button and add your source code to the gist
  4. Submit by the due time as instructed in Zoom

Do not publish your code on a public repl.it or repo or other public means.

Prompt

## Let's set up our dotfiles
### Part 1: Set up your dotfile repository
1. cd to your root directory (cd)
2. create a dotfiles directory (mkdir dotfiles)
2.5 run (git init) to initialize it as a git repository
3. run either a (touch .zsh_profile.zsh) file or a (touch .bash_profile) file
- zsh/bash depends on your shell. run (echo $SHELL ) in order to find out what shell you have
- if you already have a {zsh,bash}_profile file in your root directory, copy over the contents

React Router Prework

This gist contains a short assignment I'd like everyone to complete before our formal lesson. The prework involves reading some of the React Router documentation, and will allow us to keep the lesson more hands on.

Instructions

  1. Fork this gist
  2. On your own copy, go through the listed readings and answer associated questions
  3. Comment a link to your forked copy on the original gist

Questions / Readings

Mod3 Prework

What is a "framework?" And how does it differ from a "library?"

A framework has more rules and conventions to follow than a library. It may require you to name files a certain way. A framework also differs from a library in that it calls your code. A library on the other hand is something that we can call from our code at anytime. For example, we can call the jQuery library at any point we need it.

Why should we consider using a framework over vanilla JS like you have been doing in mods 1 and 2?

As we begin to write more complex applications it is not possible to maintain User Interface with vanilla javascript alone. To quote the article by Alberto Gimeno, "It is not possible to write complex, efficient and easy maintain UIs with Vanilla JavaScript." Alberto states that the main reason to use a framework is because "Keeping the UI in sync with state is hard." In addtion frameworks offer: A virtual DOM, solutions for common problems, and included functionality.

What is a "comp

A Tale of a Partner Code Challenge

The Challenge:

Not all dragons breathe fire and live in mountain caves. Some dragons are coding challenges and are slayed with functions. This story involves a dragon of that type.

The Dragon:

Write a function that takes an Array of Strings. This function should return an array of the same strings that were in the original array. However, the returned array should hold the strings in reverse alphabetical order.

var words = ['hi',  'hello', 'carrot', 'world'];
reverseAlphaWords(words);
// => ['world', 'hi', 'hello', 'carrot']
@pernstrong
pernstrong / gist:c05209d6d5820af4448b6f74bcdffb98
Last active January 7, 2020 18:04
Beginners Guide to data types

Beginners Guide to Data Types

String

What is a String?

A string is data type used to represent text.

Examples: Strings

  • "My favorite string is string cheese"
  • "Strings are part of any orchestra"
  • "The string beans are ready"
  • var greeting = "Hello, I am Dave."

Gear Up Assignment

What role does empathy play in your life and how has it helped you?

Throughout the many jobs I have had, I have been part of many diverse teams. Empathy has played a huge role in working with others toward a common goal in these situations. When I was younger, say high school, I would not have considered myself a very empathetic person. Through my early 20’s though I developed more self-awareness and realized this was an area I needed to improve in. This skill has helped me in every relationship I have had both professional and personal. The ability to understand where someone else is coming from and what they are feeling is vital to working towards a common goal

How does empathy help you build better software?

To start, empathy helps build a stronger team. The listening aspect described in the articles is paramount to good teamwork. Empathy is also very important in designing the software for the end user. In the first article, the author descr

Professional Development Assignment

What is your greatest strength and how do you know?

I believe my greatest strength is my ability to keep an optimistic outlook and persevere through challenges. I know this because it has been tested throughout my personal, professional and educational life. I have had many setbacks that have slowed me down or changed my course but I always remain positive about the end goal and work towards it. I also believe that in team environments my ability to look on the bright side and keep things fun has helped others to persevere.

How do you work best?

I work best on challenges that have parameters but also allow the ability to improvise. I especially enjoy working with teams on larger projects in which we do our own individual tasks but collaborate on the project. I work best on projects that have timeframes and deadlines but a