Skip to content

Commit

Permalink
notes and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
brownsarahm committed Apr 26, 2024
1 parent 3956f6e commit 8bf0d15
Show file tree
Hide file tree
Showing 8 changed files with 334 additions and 0 deletions.
18 changes: 18 additions & 0 deletions _practice/2024-04-25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

Your task is to help prevent students from carrying misconceptions on to future classes.

You may choose either *one* of these two formats.
Your task is to clear misconceptions.


For every 4 conceptual level misconceptions you address, you can earn 1 review badge, up to a maximum of 3 badges across the two types.

**You may discuss your work with class mates but must submit work individually and should explain the misconception in your own words**

Each question will have 3 parts:
- the question with answer options; 1 correct and 3 wrong
- hint/replies that could be sent to a student that picked each option
- an overall explanation of the misconception(s) with **links to high quality external references and/or class notes**.


You will work in a [dedicated repo for this](https://classroom.github.com/a/l6vXF5Lv) so that you work with a group. The repo's README has more detailed instructions including an option for explore badges instead.
3 changes: 3 additions & 0 deletions _prepare/2024-04-30.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
there is no class, this is create just to make the script not fail.

You can close this
19 changes: 19 additions & 0 deletions _review/2024-04-25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

Your task is to help prevent students from carrying misconceptions on to future classes.

You may choose either *one* of these two formats.
Your task is to clear misconceptions.


For every 4 vocabulary level misconceptions you address, you can earn 1 review badge, up to a maximum of 3 badges across the two types.

**You may discuss your work with class mates but must submit work individually and should explain the misconception in your own words**

Each question will have 3 parts:
- the question with answer options; 1 correct and 3 wrong
- hint/replies that could be sent to a student that picked each option
- an overall explanation of the misconception(s) with **links to high quality external references and/or class notes**.


You will work in a [dedicated repo for this](https://classroom.github.com/a/l6vXF5Lv) so that you work with a group. The repo's README has more detailed instructions including an option for explore badges instead.

1 change: 1 addition & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ parts:
- file: notes/2024-04-16
- file: notes/2024-04-18
- file: notes/2024-04-23
- file: notes/2024-04-25
- caption: Activities
chapters:
- file: activities/kwl
Expand Down
7 changes: 7 additions & 0 deletions activities/practice.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,11 @@ Activities:

Activities:
```{include} ../_practice/2024-04-23.md
```
## 2024-04-25

[related notes](../notes/2024-04-25)

Activities:
```{include} ../_practice/2024-04-25.md
```
7 changes: 7 additions & 0 deletions activities/prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,11 @@ Activities:

Activities:
```{include} ../_prepare/2024-04-25.md
```
## 2024-04-30

[related notes](../notes/2024-04-30)

Activities:
```{include} ../_prepare/2024-04-30.md
```
7 changes: 7 additions & 0 deletions activities/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,11 @@ Activities:

Activities:
```{include} ../_review/2024-04-23.md
```
## 2024-04-25

[related notes](../notes/2024-04-25)

Activities:
```{include} ../_review/2024-04-25.md
```
272 changes: 272 additions & 0 deletions notes/2024-04-25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
---
file_format: mystnb
kernelspec:
name: python3
---

+++{"lesson_part": "main"}

# Wrap up

+++{"lesson_part": "main"}

## Announcements

- there is a free practice badge available for April 11
- if you already have the grade you aimed to get, you will get an issue from me to get lab credit without attendance


+++{"lesson_part": "main"}

## Minimal Reproducible Example

[stackoverflow guidelines](https://stackoverflow.com/help/minimal-reproducible-example)

+++{"lesson_part": "main"}

## Clearing Misconceptions


### Commit Messages

> if you use git commit without a message you have to quit that terminal and start over
```{note}
How can we show that this is not true?
```

First we need to get to a path where we are in a git directory:
```{code-cell} bash
:tags: ["skip-execution"]
ls
```

+++{"lesson_part": "main","type":"output"}

```{code-block} console
ex sq_sum_threaded.c
gh-inclass-sp24-brownsarahm sqsum
hi.sh sqsum.dSYM
kwl-sp24-brownsarahm sqsuml
nand2tetris sqsuml.dSYM
spring2024 test
sq_sum_locked.c tiny-book
```

+++{"lesson_part": "main"}
we will use the `test repo`:

```{code-cell} bash
:tags: ["skip-execution"]
cd test/
```


+++{"lesson_part": "main"}

to be able to make a commit, we need edits, so lets make a new file:

```{code-cell} bash
:tags: ["skip-execution"]
touch example.md
```


+++{"lesson_part": "main"}
and check it with git
```{code-cell} bash
:tags: ["skip-execution"]
git status
```

+++{"lesson_part": "main","type":"output"}

```{code-block} console
On branch main
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: test.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
example.md
no changes added to commit (use "git add" and/or "git commit -a")
```

+++{"lesson_part": "main"}
To be able to make a commit, we have to stage something

```{code-cell} bash
:tags: ["skip-execution"]
git add .
```

+++{"lesson_part": "main","type":"output"}

```{code-block} console
```

+++{"lesson_part": "main"}

```{code-cell} bash
:tags: ["skip-execution"]
git status
```

+++{"lesson_part": "main","type":"output"}

```{code-block} console
On branch main
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: example.md
modified: test.txt
```

Now that we have content staged, we can go on.

+++{"lesson_part": "main"}

We will commit now, without the `-m` option fo rthe message
```{code-cell} bash
:tags: ["skip-execution"]
git commit
```

+++{"lesson_part": "main"}

then it opens vim for us, a partially outlined file for us to put the
commit message it.

Then we :
- exit edit mode with {kbd}`esc`
- then type `:wq: to save and quit



+++{"lesson_part": "main","type":"output"}

```{code-block} console
[main 8fc580d] xample commit
2 files changed, 1 insertion(+)
create mode 100644 example.md
```

Finally, we have our commit!


+++{"lesson_part": "main"}

### Git vs GitHub

> git and GitHub are just synonyms, they refer to the same thing
```{note}
How can we show that this is not true?
```

+++{"lesson_part": "main"}

One thing we can to is make a repo with `git` that is not connected to GitHub.

```{code-cell} bash
:tags: ["skip-execution"]
git init example
```

+++{"lesson_part": "main","type":"output"}

```{code-block} console
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /Users/brownsarahm/Documents/inclass/systems/example/.git/
```

+++{"lesson_part": "main"}

Then we can cd into the repo
```{code-cell} bash
:tags: ["skip-execution"]
cd example/
```



+++{"lesson_part": "main"}

we can see that it is a git repo

```{code-cell} bash
:tags: ["skip-execution"]
git status
```

+++{"lesson_part": "main","type":"output"}

```{code-block} console
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track)
```

+++{"lesson_part": "main"}
but that it has no `remote`s

```{code-cell} bash
:tags: ["skip-execution"]
git remote
```

+++{"lesson_part": "main"}


You could also show alternative git hosts, for example:
- [bitbucket](https://bitbucket.org/product/guides/getting-started/overview#a-brief-overview-of-bitbucket)
- [gitlab](https://about.gitlab.com/platform/)


+++{"lesson_part": "main"}

## Multiple Cursors

we looked at the [VSCode Multiple Cursors feature](https://code.visualstudio.com/docs/editor/codebasics#_multiple-selections-multicursor)

+++{"lesson_part": "site","type":"badges"}




## Badges

`````{tab-set}
````{tab-item} Review
```{include} ../_review/2024-04-25.md
```
````
````{tab-item} Practice
```{include} ../_practice/2024-04-25.md
```
````
`````



## Experience Report Evidence

## Questions After Today's Class

0 comments on commit 8bf0d15

Please sign in to comment.