From 94affe715f191e77fb5c624bae8e0d51f7509d8b Mon Sep 17 00:00:00 2001 From: Craig Stodd Date: Thu, 14 May 2026 11:56:05 +0100 Subject: [PATCH] Corrected answers to each question --- homework.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/homework.md b/homework.md index 1a8a59b2..a5051516 100644 --- a/homework.md +++ b/homework.md @@ -2,24 +2,28 @@ ## 1. What is 2 + 2? -5 +4 ## 2. What is JavaScript? -An exciting new play about coffee. +A browser-based programming language. Javascript is used to add interactive functions to otherwise static webpages, applications and more. ## 3. Name three problems Git & GitHub solve? -When people want to show off code to each other they can put it on GitHub +1. Version control and history (The Time Machine) - Without Git, saving and managing versions of a project is messy and complicated (i.e. multiple similarly-named .zip files). Github provides a clear and concise format for managing version history through repositories, branches and commits. + +2. Parallel development (The Branching Problem) - Github allows multiple people to work on the same project without them overwriting each others' work. Using branches allows the creation of isolated environments to work on specific issues without disrupting the original code. + +3. Centralization and Collaboration (The Distribution Problem) - GitHub acts as a "home" source to store code (i.e. a cloud server), while Git is used to make changes to that code in a local environment that does not affect the original code. Code can be submitted to GitHub via "pushes" - where changes can be compared to the original code - and reviewed via "Pull Requests," simplifying communication, feedback and collaboration. ## 4. What happens when you `fork` a repository? -You delete it +A copy of the original repository is created with a new url. This allows edits, additions or changes to be made without affecting the original repository. ## 5. What happens when you clone a repository? -It send it to a friend +When a repository is cloned, it creates a local copy on your machine from a remote source (GitHub). This allows you to make changes locally without affecting the original repository. ## 6. What is a Pull Request? -When you send a file over the internet +A "Pull Request" is a request to merge any changes made in a branch of code with the main branch. Code submitted for a Pull Request is reviewed by peers to highlight errors, provide criticism and make suggestions.