-
Notifications
You must be signed in to change notification settings - Fork 14
Lesson Plan wk 3
Don't be shy, questions don't answer themselves!
- Do some Pull Requesting
- And some Basic Collaboration
- Then try Collaborating with Branches
Finally, it all comes together!
Q: What do Incremental Development and Git Branches have in common?
A: They're both part of well-structured software development!
Split into groups of 2-3 and study Built with Branches
Study it on GitHub:
- How many branches do you see, what do you see when you open each one?
- Does changing branches change what you see on GitHub Pages?
- Take a look at the Network view, what are you looking at?
- Now everyone fork this repository and refresh the Network view.
- What's changed?
- What is a fork?
- What is a branch?
Clone it and study it on your computer with GitKraken:
- Open the cloned folder in VSC
- Open the
index.htmlin your broswer -
Check out a different branch from GitKraken
- Has anything changed in VSC?
- What happens when you refresh your browser?
- What happens in GitKraken if you make a commit from
masterbranch? - What happens in GitKraken if you make a commit from
aside-infobranch?
Practice fixing an issue with a new branch:
-
Read this issue from the
built-with-branchesrepository -
Create & check out a new branch called
adding-idsin GitKraken - Add meaningful id's to the different elements in the index.html file (using VSC)
- Commit your changes with a helpful commit message
- Push the
adding-idsbranch to your fork on GitHub - Merge
adding-idsintomasteron your computer - Push
masterto GitHub
This is just a taster of what's to come. There's lots of opportunity to practice this next module: you'll be expected to complete each week's project and the module exercises on separate branches!
How does your HTML & CSS become a live web page? In 3 steps!
- Source Code: this is what you write in your code editor
- The DOM: This is what you inspect with the DevTools
- Rendered Website: This is what you see on your screen when you visit a web site
Lets take another look at Inspecting the DOM to see this in action:
- These 3 examples are very helpful for understanding the web page life cycle and that the DOM is not always a perfect copy of what you write in your HTML:
- Basic without CSS
- Basic with CSS
- Tables
- the HTML Bugs: no
<tr>, unclosed tags, - (Be sure to click on the "see it all side-by-side" button!)
- Different ways of including CSS
- Editing the DOM from developer tools will change what is rendered on the screen but will not effect the source code HTML & CSS (ie. changes will disappear when you refresh the browser):
This week's project is to replicate DuckDuckGo. Let's get a start by practicing three key skills:
With these skills under your belt, the rest of the project is just a lot of tinkering!