Skip to content

Commit 9ffe936

Browse files
committed
we will try with only one exercise block
1 parent b17f3bd commit 9ffe936

File tree

4 files changed

+14
-30
lines changed

4 files changed

+14
-30
lines changed
Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
1-
# Exercise 2
2-
3-
4-
:::{admonition} You can participate in two ways
5-
- Either by discussing with others and writing your own thoughts via collaborative notes
6-
- Or by coding
7-
- Or a mix of the two that is most meaningful for you or your group
8-
:::
9-
10-
11-
## Discussion track
12-
13-
The topic of this discussion session is encapsulation.
14-
Can you please comment on these recommendations in the collaborative notes and perhaps suggest
15-
other recommendations which have helped in your work and others could find useful?
1+
# Encapsulation
162

173

184
:::{discussion} Types of encapsulation
@@ -38,11 +24,3 @@ Let's say you want to move a code from one system to another. What are the thin
3824
- Global data are often input parameters, configuration parameters, command-line arguments.
3925
- But try to localize these to the "main" code/function.
4026
:::
41-
42-
43-
44-
## Coding track
45-
46-
Here you can continue either with some of the coding tasks from the first
47-
exercise session or you can program something inspired by our live-coding
48-
session.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exercise 1
1+
# Exercise
22

33

44
:::{admonition} You can participate in two ways

content/index.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ Image to get started:
1616
:delim: ;
1717

1818
20 min ; {doc}`starting-point`
19-
20 min ; {doc}`exercise1`
19+
20 min ; {doc}`exercise`
2020
10 min ; Discussion
2121
10 min ; Break
22-
30 min ; Live-coding with suggestions via notes ({doc}`solution`)
23-
20 min ; {doc}`exercise2`
22+
50 min ; Live-coding with suggestions via notes ({doc}`solution`)
2423
10 min ; Break
2524
15 min ; Discussion
2625
:::
@@ -31,8 +30,15 @@ Image to get started:
3130
:caption: Episodes
3231

3332
starting-point
34-
exercise1
35-
exercise2
33+
exercise
34+
:::
35+
36+
37+
:::{toctree}
38+
:maxdepth: 1
39+
:caption: Optional
40+
41+
encapsulation
3642
:::
3743

3844

content/starting-point.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ more modularity and re-usability.
6565
:::{instructor-note}
6666
Participants give suggestions and ask questions via collaborative document
6767
and instructor(s) try to follow and answer. They can also roughly follow
68-
the ideas and steps in the {ref}`guide`.
68+
the ideas and steps in the {doc}`solution`.
6969

7070
It is OK and good if mistakes happen and it is fun if the instructor(s) can
7171
convey a bit of "improv" feel to this lesson.

0 commit comments

Comments
 (0)