Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brant Fuller - Adding missing files #448

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
97a95d2
Create section1 formatting
ericweissman Jan 4, 2021
d70b077
Remove deliverables section
ericweissman Jan 4, 2021
8459c7c
Adjust index naming
ericweissman Jan 4, 2021
a88a6c8
Add Section 2
ericweissman Jan 4, 2021
eb04226
Adjust command for running exercises
ericweissman Jan 4, 2021
6148e49
Adjust commands for section 2
ericweissman Jan 4, 2021
d832112
Create section3 formatting
ericweissman Jan 4, 2021
9a1a673
Remove language around JD book
ericweissman Jan 4, 2021
91ba56d
Add section 4 formatting
ericweissman Jan 4, 2021
15d7698
Add final project formatting
ericweissman Jan 4, 2021
96346d4
Added previous day structure to archived directory
ericweissman Jan 4, 2021
5a444e9
Adjust README to follow Section formatting
ericweissman Jan 4, 2021
e9ba099
Add instructions on expectations
ericweissman Jan 4, 2021
a34ba34
Move all Day 1 - 7 to archived
ericweissman Jan 4, 2021
4969ec4
Adjust to main branch rather than master
ericweissman Jan 4, 2021
9078c46
Adjust deliverables in index
ericweissman Jan 4, 2021
07825e7
Adjust Section 1 readme
ericweissman Jan 11, 2021
a88f311
Adjust deliverables
ericweissman Jan 11, 2021
bdeb640
Remove outdated language from instructions
ericweissman Jan 11, 2021
409f339
Add extensions
ericweissman Jan 11, 2021
752212d
Remove deliverales language
ericweissman Jan 11, 2021
2a22f36
Adjust section 1 exercises
ericweissman Jan 18, 2021
564d8f4
Adjust section 2 exercises
ericweissman Jan 18, 2021
c006e0c
Adjust section 3 exercises
ericweissman Jan 18, 2021
5fe3424
Clarify format
ericweissman Jan 18, 2021
3463ffc
Adjust final prep
ericweissman Jan 21, 2021
bca2f74
Adjust link to correct prework in README
ericweissman Jan 21, 2021
223a510
Update README.md
ericweissman Feb 15, 2021
b4097ee
Remove environment setup
ericweissman Feb 15, 2021
e10bd2d
Adjust super learners link
ericweissman Feb 15, 2021
618703f
Adjust setup instructions
ericweissman Feb 16, 2021
c3578c9
Add disclaimer for rbenv setup
ericweissman Feb 16, 2021
97de725
Adjust rbenv install to 2.7.2
ericweissman Feb 17, 2021
b2b7e47
Add Section 1
branfull Feb 23, 2021
4a2f497
Add Section 2 work
branfull Feb 25, 2021
4b338dd
Add section 3 work
branfull Mar 1, 2021
ba01c60
Add section 4 work
branfull Mar 1, 2021
9f0ce3f
Update with link to mentor DTR gist
branfull Mar 2, 2021
6542d5c
Add group work dtr link
branfull Mar 2, 2021
a14a2d1
Add pre-teaching practice gist
branfull Mar 3, 2021
ac70d3f
Add annotations and mod zero hero
branfull Mar 10, 2021
1d1c1dd
Merge branch 'main' of github.com:branfull/backend_mod_1_prework
branfull Mar 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 46 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,31 @@

This repository will walk you through the Mod 1 Pre-work for the Backend program at Turing.

Each day has a folder containing a `README.md` file with instructions for the day, exercises, and questions. Please complete all the exercises and questions, as well as lessons listed in the day's readme.
Each day has a folder containing a `README.md` file with instructions for the section, exercises, and questions. Please complete all the exercises and questions, as well as lessons listed in the section's README.

### Pre-work Index

* [Day 0 - More Terminal Practice](day_0)
* [Day 1 - Strings and Numbers](day_1)
* [Day 2 - Arrays and Iteration](day_2)
* [Day 3 - If Statements and Loops](day_3)
* [Day 4 - Methods and Return Values](day_4)
* [Day 5 - Hashes](day_5)
* [Day 6 - Classes](day_6)
* [Day 7 - Build A Thing](day_7)
* [Section 1 - SUPER LEARNERS, Terminal and Ruby Foundations](section1)
* [Section 2 - ASKING QUESTIONS, Conditionals and Methods](section2)
* [Section 3 - GROWTH MINDSET, Hashes](section3)
* [Section 4 - HOW YOU USE YOUR TIME, Objects and Classes](section4)
* [Final Prep - Final Deliverables and Submission](final_prep)

## What to Expect

Through completing this pre-work, you can expect to get practice re-inforcing what you learned/are learning in Mod 0, learn more technical content, and deeply reflect on your mindsets and habits and start thinking about which of those mindsets and habits will help you learn to code, and which of those you may need to change.

We will remind you of the best practices that follow from time-to-time, but to ground yourself in the work ahead, read them carefully.

## Best Practices: Learning to Write Code

**If you are stuck for longer than 30 minutes, know that it is always ok to ask for help!** The process of becoming a software developer is difficult, and learning to code is hard. At some point, everyone struggles. Struggle is a normal, healthy part of the learning process - don't give up if you hit a hard spot. If you consistently practice every day and don't take shortcuts, you will be on the path to learning how to code. When you reach out for help, challenge yourself to ask clear questions and use technical vocabulary. Speaking accurately about code is a great way to help lock in technical understanding. Use [this guide](https://gist.github.com/ericweissman/fb0241e226227867b6bc70a4d49227f5) to learn the optimial way to ask for help when you get stuck!

**Process over Product.** When asking for help, do your best to seek understanding rather than `the answer` or `the solution`. Even if your helper gets you a solution that works, make sure to spend time on *why* it works, rather than just accepting the solution and moving on.

**Type every line of code.** One of the best things you can do to set yourself for success is to make sure you type out all the code examples you see in the readings and exercises in this pre-work, *do not* copy and paste. The more hands-on-keyboard practice you can give yourself, the better. Copying and pasting won't help you solidify these concepts, manually typing all the code in will. This also applies to auto complete features in popular text editors. They are helpful, no doubt, but doing things the hard way at the beginning is a great way to hone your workflow later on.

**Details matter.** Pay close attention to small details in syntax, spacing, and language. The most detailed oriented you are as you're working, the more reliable and well-crafted your code will be. In programming, being detail oriented helps cut down on buggy code and difficult to use systems. It can also help you notice differences in your code, enabling you to identify typos and mistakes more quickly.

# Environment

Expand All @@ -23,30 +36,33 @@ Follow this guide step-by-step to make sure you have everything you need, then y

***Before proceeding***, if you have not already, complete the [mod-0 environment setup instructions](http://mod0.turing.io/setup-instructions) to install Atom, xcode-select, Homebrew, git, and Chrome.

We will now cover these three topics:
We will cover the following:

* [Installing Rbenv - a Ruby Version Manager](#set-up-ruby-environment-manager-rbenv)
* [Installing Ruby Versions using Rbenv](#use-rbenv-to-install-a-certain-version-of-ruby)
* [Terminal](#terminal)
* [Forking and Cloning the Prework Repository](#forking-the-module-1-prework-repository)


First, let's get a Ruby version management tool on our machines.
First, let's get a Ruby version management tool on our machines. -->

## Set up Ruby Environment Manager: [rbenv](https://github.com/rbenv/rbenv#homebrew-on-mac-os-x)
## Set up Ruby Environment Manager: [rbenv](https://github.com/rbenv/rbenv#homebrew-on-mac-os-x)

Over the years, Ruby has evolved through various version releases over time that contain new features and upgrades. Version 0.95, the very first, was released in 1995, and at the beginning of year 2020, we're at version 2.7.
Over the years, Ruby has evolved through various version releases over time that contain new features and upgrades. Version 0.95, the very first, was released in 1995, and at the beginning of year 2021, we're at version 2.7.

Generally, programs written in one version of Ruby will run just fine on another version, but sometimes incompatibilities can be encountered, meaning that particular program needs to be run with a specific version of Ruby.

Additionally, very useful tools called "gems" are out there that were created specifically to help developers code (specifically, the `pry` gem is very handy) and we cannot utilize these without first installing and configuring `rbenv`.

To solve potential compatability issues, we'd like to be able to install and manage multiple versions of Ruby on our system. We would also like to be able to use gems across different versions of Ruby. These are the kinds of things `rbenv` handles.

#### Installation
### Installation

#### NOTE: If you have any issues with the `rbenv` setup, please message Eric Weissman on slack (@ericweissman) and we will address your issues at a later date! You're system version of ruby will work fine for your Prework exercises!

Here is a video walk-through that may be helpful for the following steps. Check it out!

Keep in mind that the steps in the video are correct, but we want you to install **ruby version 2.5.3**, per the written instructions below.
Keep in mind that the steps in the video are correct, but we want you to install **ruby version 2.7.2**, per the written instructions below.

[![Walkthrough RBENV and Ruby](images/rbenv-ruby-thumbnail.jpg)](https://youtu.be/3DtqMlK8In0 "Video Walkthrough for RBENV and Ruby Installation")

Expand Down Expand Up @@ -105,14 +121,14 @@ More information about rbenv can be found [here](https://github.com/rbenv/rbenv#

### Use rbenv to install a certain version of Ruby

Now that we have rbenv installed, we're going to use it to install a specific version of Ruby: Ruby 2.5.3. This is the version we will use in the Backend Program.
Now that we have rbenv installed, we're going to use it to install a specific version of Ruby: Ruby 2.7.2. This is the version we will use in the Backend Program.

If you need another version it'll be the same procedure, just replace `2.5.3` in the instructions with whichever version you want.
If you need another version it'll be the same procedure, just replace `2.7.2` in the instructions with whichever version you want.

Install it with:

```
$ rbenv install 2.5.3
$ rbenv install 2.7.2
```

It will take a while to finish installing, and print a _lot_ of text to your terminal.
Expand All @@ -123,14 +139,14 @@ When it's all finished, type:
$ rbenv versions
```

and you should now see `2.5.3` listed.
and you should now see `2.7.2` listed.

Be careful, there are two different rbenv commands, `version` and `versions`. The first shows you _your current ruby version_. The second shows _all installed versions_.

Switch to your newly installed version with

```
$ rbenv local 2.5.3
$ rbenv local 2.7.2
```

Now enter:
Expand All @@ -142,17 +158,17 @@ $ ruby -v
This shows us what version of Ruby we are running. You should see something like:

```
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin17]
ruby 2.7.2p105 (2018-10-18 revision 65156) [x86_64-darwin17]
```

You can ignore everything after the `p` in `2.5.3p105`- the first bit shows us we are running Ruby 2.5.3, which is what we want to verify. If you got something different than `2.5.3`, such as `2.4.1`, go back through the Rbenv installation, make sure you have you successfully edited your `bash_profile`, restart your terminal, and try again.
You can ignore everything after the `p` in `2.7.2p105`- the first bit shows us we are running Ruby 2.7.2, which is what we want to verify. If you got something different than `2.7.2`, such as `2.4.1`, go back through the Rbenv installation, make sure you have you successfully edited your `bash_profile`, restart your terminal, and try again.

#### Setting the Default Version

You can tell rbenv which Ruby version you want to use by default. Let's do that with terminal command:

```
$ rbenv global 2.5.3
$ rbenv global 2.7.2
```

Now, let's make your terminal aware of this update with command:
Expand All @@ -163,9 +179,9 @@ $ rbenv rehash

## Terminal

We will be referencing many terminal commands throughout the prework. It is recommended that you practice using terminal commands before getting started with day_1.
We will be referencing many terminal commands throughout the prework. It is recommended that you practice using terminal commands before getting started with section1.

[Check out day_0 to practice!](day_0)
[Check out section 1 to practice!](section1)

### Forking the Module 1 Prework Repository

Expand All @@ -177,7 +193,7 @@ In order to fork the repository, follow these steps:

#### 1. Make sure you are logged in to GitHub (if you are not logged in, log in and come back to this page)

#### 2. You'll want to find this repository's Fork button. Scroll to the top of *this* webpage... yes, [this one](https://github.com/turingschool-examples/backend_mod_1_prework) that you're reading right now!
#### 2. You'll want to find this repository's Fork button. Scroll to the top of *this* webpage... yes, [this one](https://github.com/turingschool/backend_mod_1_prework) that you're reading right now!

#### 3. Click on `Fork` in the upper right corner of the screen, just under the top banner.

Expand Down Expand Up @@ -220,19 +236,19 @@ Resolving deltas: 100% (332/332), done.
$ cd backend_mod_1_prework
$ git status .
// If everything worked correctly, you should see:
On branch master
On branch main
nothing to commit, working tree clean
```

From here on out, all the work you do will be in your personal copy of this repository. Throughout Mod 0, we may call this your "prework repository" or "backend prework"... this refers to your forked copy of this `backend_mod_1_prework` repository that you have just now cloned to your device.

Here's _another_ video walk-through you may find helpful:
Here's _another_ video walk-through you may find helpful. **NOTE - The video may reference a "master" branch - we have renamed this branch to "main"**

[![Walkthrough Day 1 and Git stuff](/images/backend-prework-day-one-thumb.jpg)](https://youtu.be/HYAzk6L63ek "Video Walkthrough for Day 1 & Git Stuff")
[![Walkthrough Git stuff](/images/backend-prework-day-one-thumb.jpg)](https://youtu.be/HYAzk6L63ek "Video Walkthrough for Git Stuff")

Each day's `README` will walk you through the necessary steps to save your work.

To begin, open your terminal and `cd` into the `day_0` directory. Follow the instructions contained in the `README.md` file, and have fun experimenting!
To begin, open your terminal and `cd` into the `section1` directory. Follow the instructions contained in the `README.md` file, and have fun experimenting!

----------------------------------

Expand Down
71 changes: 0 additions & 71 deletions day_0/README.md

This file was deleted.

Loading