Skip to content

Commit 75cc7c0

Browse files
committed
Add remaining episodes as rough drafts
1 parent 1ff665a commit 75cc7c0

17 files changed

+671
-3
lines changed

config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@ episodes:
8686
- 34-pull-request.md
8787
- 35-merge-pr.md
8888
- 36-merge-conflicts.md
89+
- 40-introduction.md
90+
- 41-setup.md
91+
- 42-example-code.md
92+
- 43-repo-issue-fixing.md
93+
- 44-create-pull-request.md
94+
- 45-review-pull-request.md
95+
- 46-merge-pull-request.md
96+
- 50-introduction.md
97+
- 51-setup.md
98+
- 52-example-code.md
99+
- 53-create-new-test.md
100+
- 54-handling-errors.md
89101

90102
# Information for Learners
91103
learners:

episodes/10-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Lesson 1: Introduction to Integrated Development Environments"
2+
title: "Lesson 1: Integrated Development Environments"
33
teaching: 15
44
exercises: 0
55
---

episodes/12-running-vscode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Then select `Mark done`, and close the welcome windows.
7878

7979
## A Sample Project
8080

81-
FIXME: copy code-style-example to softwaresaved's organisation
81+
FIXME: copy code-style-example repo to softwaresaved's organisation
8282

8383
Next, let’s obtain some example Python and edit it from within VSCode.
8484
So first, you can download the example code we'll use from https://github.com/UNIVERSE-HPC/code-style-example/releases/tag/v1.0.0, either as a `.zip` or `.tar.gz` compressed archive file.

episodes/22-example-code.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ exercises: 0
1818

1919
## Obtaining Some Example Code
2020

21+
FIXME: copy code-style-example into softwaresaved org
22+
2123
Open a shell
2224
On own machine: open terminal with a bash shell
2325
Using the shell, we’re going to use Git to clone our example GitHub code repository

episodes/32-example-code.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ exercises: 0
1818

1919
## Creating a Copy of the Example Code Repository
2020

21+
FIXME: copy git-example repo into softwaresaved
22+
2123
So the first thing we need to do is create a new GitHub repository from a template repository
2224
So first go to https://github.com/UNIVERSE-HPC/git-example [copy and paste]
2325
Select ‘Use this template’ -> Create a new repository
@@ -53,7 +55,7 @@ the problem would also become compounded if other developers came on board, perh
5355
what would be nice, would be to have our cake and eat it, so to speak
5456
where we can change our code using version control to track our changes,
5557
but not interfere with our working code on the main branch
56-
and as we’ve heard from Jeremy, repository branches can give us just that
58+
Fortunately, repository branches can give us just that
5759

5860
## Create Example Issues
5961

episodes/40-introduction.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Lesson 4: Code Review"
3+
teaching: 15
4+
exercises: 0
5+
---
6+
7+
:::::::::::::::::::::::::::::::::::::: questions
8+
9+
- FIXME
10+
11+
::::::::::::::::::::::::::::::::::::::::::::::::
12+
13+
::::::::::::::::::::::::::::::::::::: objectives
14+
15+
- FIXME
16+
17+
::::::::::::::::::::::::::::::::::::::::::::::::
18+
19+
##
20+
21+
##

episodes/41-setup.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "4.1 Setup"
3+
teaching: 10
4+
exercises: 2
5+
---
6+
7+
## Setup
8+
9+
:::::::::::::::::::::::::::::::::::::: questions
10+
11+
- FIXME
12+
13+
::::::::::::::::::::::::::::::::::::::::::::::::
14+
15+
::::::::::::::::::::::::::::::::::::: objectives
16+
17+
- FIXME
18+
19+
::::::::::::::::::::::::::::::::::::::::::::::::
20+
21+

episodes/42-example-code.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: "4.2 Some Example Code"
3+
teaching: 10
4+
exercises: 0
5+
---
6+
7+
:::::::::::::::::::::::::::::::::::::: questions
8+
9+
- FIXME
10+
11+
::::::::::::::::::::::::::::::::::::::::::::::::
12+
13+
::::::::::::::::::::::::::::::::::::: objectives
14+
15+
- FIXME
16+
17+
::::::::::::::::::::::::::::::::::::::::::::::::
18+
19+
## Creating a Copy of the Example Code Repository
20+
21+
FIXME: copy review-example repo into softwaresaved org
22+
23+
So the first thing we need to do is create a new GitHub repository from a template repository
24+
So first go to https://github.com/UNIVERSE-HPC/review-example [copy and paste]
25+
Select ‘Use this template’ -> Create a new repository
26+
Set owner and repo name (e.g. git-example), ensure it’s set to public, Create
27+
28+
29+
::::::::::::::::::::::::::::::::::::: keypoints
30+
31+
- FIXME
32+
33+
::::::::::::::::::::::::::::::::::::::::::::::::

episodes/43-repo-issue-fixing.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
title: "4.3 Fixing a Repository Issue"
3+
teaching: 10
4+
exercises: 0
5+
---
6+
7+
:::::::::::::::::::::::::::::::::::::: questions
8+
9+
- FIXME
10+
11+
::::::::::::::::::::::::::::::::::::::::::::::::
12+
13+
::::::::::::::::::::::::::::::::::::: objectives
14+
15+
- FIXME
16+
17+
::::::::::::::::::::::::::::::::::::::::::::::::
18+
19+
## Adding an Issue to the Repository
20+
21+
Next thing to do is to add an issue to the repository
22+
Which will represent something we need to work on
23+
For the sake of this exercise, it doesn't really matter what the issue is
24+
But perhaps we've spotted a problem with our codebase during development, and we need to note this problem needs to be fixed
25+
26+
For example, if we look at the README for the repo, we can see there's a broken link
27+
Clearly a problem, so let's register that as an issue
28+
Select “Issues”, then “New issue”
29+
Title: Broken link to article
30+
Description: The README link to the SSI website article is broken, resulting in a page not found error
31+
Select “Submit new issue”
32+
Have opportunity to assign someone to the issue - let's say me
33+
And also assign what type of issue it is
34+
It's a problem with the README, so that's probably documentation, so let's set it as that
35+
36+
QUESTION: who’s been able to create a new issue on the repository? Yes/No
37+
38+
## Fixing the Issue
39+
40+
Now the next thing, is perhaps a bit later on, we decide to fix the issue
41+
So we navigate to the README (go to repository main page)
42+
And here, for the sake of the exercise, we'll just use GitHub's edit mechanism to edit the file directly
43+
Alternatively, and in most cases, we'd probably do this by having the repository cloned on our machine, and then we'd make the change, and submit it that way
44+
But in the interests of time and simplicity, we'll just use GitHub's edit function
45+
So select the edit icon
46+
And edit the README to fix the link (remove the bit that says “typo/“)
47+
48+
So we now need to commit the change, so we now select “Commit changes” in the top right
49+
Good practice when committing a change is to refer to the issue number in the commit message
50+
This gives us traceability for changes back to the originating issue
51+
We had our issue number 1, so let's refer to that
52+
#1 - Fix broken article link
53+
We could optionally put more info about the fix in the description if we wanted
54+
55+
Now importantly, we want to submit this change as a pull request on a new branch
56+
This will allow others to review that pull request
57+
Selecting the second option here allows us to create a new branch for these changes
58+
And we can give this new branch an identifiable name
59+
readme-broken-link-fix
60+
61+
Once we select propose changes, this change is submitted and our new branch, with that fix, is created
62+
And scrolling down, we can see our change highlighted
63+
64+
QUESTION: who’s managed to commit their fix to a new branch? Yes/No
65+
66+
::::::::::::::::::::::::::::::::::::: keypoints
67+
68+
- FIXME
69+
70+
::::::::::::::::::::::::::::::::::::::::::::::::

episodes/44-create-pull-request.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: "4.4 Submiting a Pull Request"
3+
teaching: 10
4+
exercises: 0
5+
---
6+
7+
:::::::::::::::::::::::::::::::::::::: questions
8+
9+
- FIXME
10+
11+
::::::::::::::::::::::::::::::::::::::::::::::::
12+
13+
::::::::::::::::::::::::::::::::::::: objectives
14+
15+
- FIXME
16+
17+
::::::::::::::::::::::::::::::::::::::::::::::::
18+
19+
## Creating a Pull Request
20+
21+
But - we still need to submit this new branch and the commit we made as a pull request
22+
And GitHub nicely guides us to doing this
23+
Select “Create pull request”
24+
25+
Once we've done that, we can see that our pull request has been opened
26+
And is ready for consideration to be merged into the codebase
27+
For information, we can see that GitHub is aware that the change we've committed can be merged directly - without conflicts - into our main branch
28+
We could optionally add more info about this pull request here in comments if we wanted
29+
30+
QUESTION: who’s been able to create a new pull request? Yes/No
31+
32+
::::::::::::::::::::::::::::::::::::: challenge
33+
34+
## Swap Repository with Someone Else
35+
36+
For the next stage, you'll be reviewing a pull request. Either:
37+
38+
- If you are attending a workshop with other learners,
39+
the instructor will enable you to swap the URL of your repository with the repository URL of another learner so you can review the pull request they made on their own repository.
40+
- If you are going through this material on your own,
41+
you can review the pull request you made on your own repository instead.
42+
43+
:::::::::::::::::::::::::::::::::::::
44+
45+
::::::::::::::::::::::::::::::::::::: keypoints
46+
47+
- FIXME
48+
49+
::::::::::::::::::::::::::::::::::::::::::::::::

0 commit comments

Comments
 (0)