Last active
April 23, 2019 22:14
-
-
Save Alacrity01/88c58c99728d7ada7ac4c0b38d0c4189 to your computer and use it in GitHub Desktop.
Week 1, Day 2
This file contains 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 characters
Repository: a folder/directory with a Git monitoring it. | |
git remote add origin https://github.com/TheAlacrity/git-story.git Bash command that creates the address for git-story repository. | |
git push origin master Bash command that sends the repository to GitHub. | |
After git init, make changes, git add --all, git commit -m "message of changes", git remote add origin URL, git push origin master, make changes, git add --all, git commit -m "message", git push origin master...etc. | |
Rubyists prefer interpolation to concatenation for creating strings. Interpolation | |
Hash, Array, are classes in ruby. A class is a combination of what an object can do (behaviors) and what an object is (attributes). | |
WET code: write everything twice (not a good practice) | |
DRY code: do not repeat yourself (gold standard) | |
Refactoring: cleaning up code (you might not always write the most efficient code first) | |
Command + Control + up/down arrow: Move selected line of code up or down | |
Control + c: Stop infinite loop that is running | |
if statements are the opposite of unless statements | |
until statements are the opposite of while statements |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment