Skip to content

Commit 135be8e

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : 8c0b533 Branch : main Author : Tim Dennis <tdennis@library.ucla.edu> Time : 2026-01-22 01:53:24 +0000 Message : Merge pull request #33 from LibraryCarpentry/fix/consolidate-pseudocode Consolidate solutions into pseudocode episode
1 parent 391a009 commit 135be8e

File tree

5 files changed

+9
-1021
lines changed

5 files changed

+9
-1021
lines changed

config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ episodes:
6464
- computation_practice.md
6565
- computation_programming.md
6666
- pseudocode.md
67-
- solutions.Rmd
6867

6968

7069
# Information for Learners

md5sum.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22
"AUTHORS.md" "543321041272a545f730a8fbec4d66fc" "site/built/AUTHORS.md" "2026-01-22"
33
"CODE_OF_CONDUCT.md" "c93c83c630db2fe2462240bf72552548" "site/built/CODE_OF_CONDUCT.md" "2026-01-22"
44
"LICENSE.md" "b24ebbb41b14ca25cf6b8216dda83e5f" "site/built/LICENSE.md" "2026-01-22"
5-
"config.yaml" "3e3ee236bb414febb63304d020f3fcea" "site/built/config.yaml" "2026-01-22"
5+
"config.yaml" "c7f18a7fa3ac579e78cfe81367bb2b9e" "site/built/config.yaml" "2026-01-22"
66
"index.md" "bd2d349d4978ed3c68bb2b301a671bdc" "site/built/index.md" "2026-01-22"
77
"search.md" "2d215d6e5c915ce30f5a5072d986609f" "site/built/search.md" "2026-01-22"
88
"episodes/intro.md" "e176eef6a3acadfca8817bf38d46bb9f" "site/built/intro.md" "2026-01-22"
99
"episodes/exercise.md" "a2aa30d792c70d1cf39f740a85e108c5" "site/built/exercise.md" "2026-01-22"
1010
"episodes/computation_practice.md" "ddb122e2e242e1587011dea9aba364fb" "site/built/computation_practice.md" "2026-01-22"
1111
"episodes/computation_programming.md" "7e69751fdb0fc9d7d74fb641ae898f0a" "site/built/computation_programming.md" "2026-01-22"
12-
"episodes/pseudocode.md" "0ea2e3e7d977ad7245d0df4868503439" "site/built/pseudocode.md" "2026-01-22"
13-
"episodes/solutions.Rmd" "3c9c1e7239d7d5f5fc849c1d53530b5a" "site/built/solutions.md" "2026-01-22"
12+
"episodes/pseudocode.md" "4d40f6d967401096851da13f3cca7eb7" "site/built/pseudocode.md" "2026-01-22"
1413
"instructors/instructor-notes.md" "3e3dd7c81b260ed9ea96b3f927a3dbe0" "site/built/instructor-notes.md" "2026-01-22"
1514
"learners/jargon_busting.md" "28f639571863b330f8d791d02b226821" "site/built/jargon_busting.md" "2026-01-22"
1615
"learners/reference.md" "406421cb0e6eef1d001ebe4c82f0b9e2" "site/built/reference.md" "2026-01-22"
1716
"learners/setup.md" "2ce211390c1f4929a8ce5bb0479031ca" "site/built/setup.md" "2026-01-22"
1817
"profiles/learner-profiles.md" "60b93493cf1da06dfd63255d73854461" "site/built/learner-profiles.md" "2026-01-22"
19-
"renv/profiles/lesson-requirements/renv.lock" "082865a13e1fa11e1407d68151be2b6c" "site/built/renv.lock" "2026-01-22"
18+
"renv/profiles/lesson-requirements/renv.lock" "31cf7907c75c145ec5732da29620c713" "site/built/renv.lock" "2026-01-22"

pseudocode.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ One way to do that is to check we have coded the workflow correctly *before* we
140140

141141
Write some pseudocode for that step of the process.
142142

143+
::: solution
144+
To prevent accidental deletion of files, we could introduce a step to check whether or not to delete a file, e.g., by using the remove command `rm` in the Unix shell with an `-i` flag. The `-i` flag forces the system to ask for confirmation on whether or not to delete a file. One can answer either **Y** or **N** to the example below.
145+
146+
![Confirming a remove command](fig/code-in-shell.png){alt="RM command in the shell", width="75%"}
147+
:::
148+
143149
::::::::::::::
144150

145151
::: challenge
@@ -175,10 +181,6 @@ Again, a shell script could be used to automate this work. Given that these task
175181

176182
-------------------
177183

178-
Some potential solutions to these practice coding exercises can be found on the [Solutions](/solutions.html) page.
179-
180-
---------------------------------
181-
182184
#### Learning to program
183185

184186
This lesson should help you prepare to learn to code by understanding the process that coders use to break complex problems down into programmable parts.

0 commit comments

Comments
 (0)