You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 06e79a0
Browse filesBrowse the repository at this point in the historyBrowse files
Web 0.13.8: Schleife in Lektion 1 als gekipptes L (#204)
Statt „Klammer links“ heißt die Schleifenform im Struktogramm jetzt
„gekipptes L“ (en upside-down L, pt L invertido), im Text, im Vergleich
und im Wissenstest.
Claude-Session: https://claude.ai/code/session_01Ugz28UN7HvRoMmJHmaecJn
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ The format is loosely inspired by Keep a Changelog.
8
8
9
9
### Added
10
10
11
+
-**Web 0.13.8, loop in lesson 1 is a „gekipptes L“:** lesson 1 no longer calls the loop shape in the Struktogramm a „Klammer links“ but a „gekipptes L“ (condition on top, strip on the left), in the text, the comparison and the quiz (en „upside-down L“, pt „L invertido“).
11
12
-**Web 0.13.7, statements without class are coloured too:** when Programmieren shows the code without `class` and `main` (e.g. „Aufstehen;“, „Zähne putzen;“ in lesson 1), the statements now sit in a yellow block like a method, matching the yellow statements in the Struktogramm; loops and branches inside keep their own colours. Statements are now always yellow, also inside a loop or branch (own yellow stripe in the code, yellow box in the Struktogramm and in lesson 1); only the empty ø takes the colour of its block. A loop with pseudocode condition (`while (Tee noch zu heiß) {`) is coloured up to its closing brace.
12
13
-**Web 0.13.6, lesson header pinned at the top:** in a lesson step the header (← Alle Lektionen, lesson title, step numbers, step title) stays at the top of the lesson column with its own ← Zurück / Weiter → buttons next to „Alle Lektionen“; only the step content below scrolls. The buttons at the end of the step stay as well.
13
14
-**Web 0.13.4, Pseudocode switch in the toolbar and simulation of pseudocode:** the checkbox „Pseudocode“ now sits in the toolbar left of ⇄ (before it was only in the code window). For a diagram marked as pseudocode (e.g. „Tee kochen“ in Lektion 1) the simulation no longer runs the boxes as Java: it only highlights them one after another, and for a condition („Regnet es?“), a loop or a Fallauswahl it asks for the answer (true/false or ja/nein, case name). Programmieren shows no Java errors for pseudocode. Lektion 1 now mentions spaghetti code right where it says a Struktogramm has no jumps.
Copy file name to clipboardExpand all lines: web/lessons/de/01-was-ist-ein-struktogramm.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,8 +79,8 @@ Soll etwas **mehrmals** passieren, schreibt man es nicht mehrmals hin. Stattdess
79
79
So sieht sie aus:
80
80
81
81
- Oben steht die Bedingung, zum Beispiel *Teller nicht leer*.
82
-
- Die Schritte, die wiederholt werden, stehen **eingerückt** darunter. Links bildet der Kasten eine**Klammer** um sie.
83
-
- Vor jedem Durchlauf wird die Bedingung geprüft. Solange sie **true** ist, werden die Schritte in der Klammer noch einmal ausgeführt. Ist sie **false**, geht es unter der Schleife weiter.
82
+
- Die Schritte, die wiederholt werden, stehen **eingerückt** darunter. Oben und links bildet der Kasten ein**gekipptes L** um sie.
83
+
- Vor jedem Durchlauf wird die Bedingung geprüft. Solange sie **true** ist, werden die Schritte im gekippten L noch einmal ausgeführt. Ist sie **false**, geht es unter der Schleife weiter.
84
84
85
85
::: diagramm l1-wiederholung.visustruct
86
86
Solange der Teller nicht leer ist, wird ein Bissen gegessen. Danach wird der Teller abgeräumt.
@@ -93,7 +93,7 @@ Solange der Teller nicht leer ist, wird ein Bissen gegessen. Danach wird der Tel
93
93
Richtig nützlich werden die Bausteine, wenn man sie kombiniert. Das Diagramm enthält alle drei: eine Sequenz von oben nach unten, eine [Verzweigung]{.blau} und eine [Schleife]{.rosa}. Gelb sind die einfachen [Anweisungen]{.gelb}. Auch die Anweisungen in einer Verzweigung oder Schleife sind gelb. Genau genommen ist das ganze Diagramm eine Sequenz, denn auch Verzweigung und Schleife stehen in der Reihe von oben nach unten.
94
94
95
95
::: diagramm l1-grundbausteine.visustruct
96
-
Die Verzweigung erkennst du am Dreieck, die Schleife an der Klammer links. Alles zusammen steht in einer Sequenz.
96
+
Die Verzweigung erkennst du am Dreieck, die Schleife am gekippten L. Alles zusammen steht in einer Sequenz.
97
97
:::
98
98
99
99
Die Kästen können auch **ineinander geschachtelt** werden: In einer Schleife oder einem Zweig können wieder Sequenzen, Verzweigungen und Schleifen stehen.
@@ -137,7 +137,7 @@ Tee trinken
137
137
138
138
### Im Vergleich
139
139
140
-
-**Struktogramm:** Kästen ineinander, die Schleife ist eine Klammer links. Die Struktur siehst du auf einen Blick, wilde Sprünge sind unmöglich.
140
+
-**Struktogramm:** Kästen ineinander, die Schleife ist ein gekipptes L. Die Struktur siehst du auf einen Blick, wilde Sprünge sind unmöglich.
141
141
-**PAP:** Symbole mit Pfeilen, die Schleife ist ein Pfeil zurück nach oben. Sehr anschaulich, aber bei großen Plänen schnell unübersichtlich.
142
142
-**Pseudocode:** Text mit Einrückung, die Schleife steht zwischen SOLANGE und ENDE SOLANGE. Schnell geschrieben und schon nah am Programmcode.
143
143
@@ -235,10 +235,10 @@ richtig: Verzweigung
235
235
> Sprünge gibt es im Struktogramm nicht. Sequenz, Verzweigung und Wiederholung reichen für jeden Algorithmus.
236
236
237
237
? Woran erkennst du im Struktogramm eine Verzweigung?
238
-
-[ ] An einer Klammer auf der linken Seite
238
+
-[ ] An einem gekippten L
239
239
-[x] An einem Dreieck mit der Bedingung und zwei Spalten darunter
240
240
-[ ] An mehreren Rechtecken untereinander
241
-
> Die Klammer gehört zur Schleife, Rechtecke untereinander sind eine Sequenz.
241
+
> Das gekippte L gehört zur Schleife, Rechtecke untereinander sind eine Sequenz.
242
242
243
243
? Wann wird der Inhalt einer Schleife noch einmal ausgeführt?
244
244
-[x] Solange die Bedingung true ist
@@ -253,10 +253,10 @@ richtig: Verzweigung
253
253
> Ein Algorithmus ist unabhängig von der Programmiersprache. Ein Struktogramm ist eine Möglichkeit, ihn aufzuschreiben.
254
254
255
255
? Woran erkennst du in einem Programmablaufplan (PAP) eine Schleife?
256
-
-[ ] An einer Klammer auf der linken Seite
256
+
-[ ] An einem gekippten L
257
257
-[x] An einem Pfeil, der zurück nach oben führt
258
258
-[ ] Am Wort SOLANGE
259
-
> Die Klammer gehört zum Struktogramm, SOLANGE zum Pseudocode.
259
+
> Das gekippte L gehört zum Struktogramm, SOLANGE zum Pseudocode.
Copy file name to clipboardExpand all lines: web/lessons/en/01-was-ist-ein-struktogramm.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,8 +79,8 @@ If something should happen **several times**, you do not write it down several t
79
79
This is what it looks like:
80
80
81
81
- At the top is the condition, for example *Plate not empty*.
82
-
- The steps that are repeated are **indented** below it. On the left, the box forms a**bracket** around them.
83
-
- Before every pass the condition is checked. As long as it is **true**, the steps inside the bracket run once more. If it is **false**, the program continues below the loop.
82
+
- The steps that are repeated are **indented** below it. At the top and on the left, the box forms an**upside-down L** around them.
83
+
- Before every pass the condition is checked. As long as it is **true**, the steps inside the upside-down L run once more. If it is **false**, the program continues below the loop.
84
84
85
85
::: diagramm l1-wiederholung.visustruct
86
86
As long as the plate is not empty, you take a bite. After that, the plate is cleared.
@@ -93,7 +93,7 @@ As long as the plate is not empty, you take a bite. After that, the plate is cle
93
93
The building blocks become really useful when you combine them. This diagram contains all three: a sequence from top to bottom, a [branch]{.blau} and a [loop]{.rosa}. The yellow boxes are simple [statements]{.gelb}. The statements inside a branch or a loop are yellow too. Strictly speaking, the whole diagram is a sequence, because the branch and the loop also stand in the row from top to bottom.
94
94
95
95
::: diagramm l1-grundbausteine.visustruct
96
-
You recognise the branch by its triangle and the loop by the bracket on the left. Everything together sits in a sequence.
96
+
You recognise the branch by its triangle and the loop by its upside-down L. Everything together sits in a sequence.
97
97
:::
98
98
99
99
The boxes can also be **nested** inside each other: a loop or a path can contain sequences, branches and loops again.
@@ -137,7 +137,7 @@ Drink the tea
137
137
138
138
### Compared
139
139
140
-
-**Structure chart:** boxes inside boxes, the loop is a bracket on the left. You see the structure at a glance, and wild jumps are impossible.
140
+
-**Structure chart:** boxes inside boxes, the loop is an upside-down L. You see the structure at a glance, and wild jumps are impossible.
141
141
-**Flowchart:** symbols with arrows, the loop is an arrow back up. Very easy to picture, but big charts quickly get confusing.
142
142
-**Pseudocode:** text with indentation, the loop sits between WHILE and END WHILE. Quick to write and already close to program code.
143
143
@@ -235,10 +235,10 @@ richtig: branch
235
235
> There are no jumps in a structure chart. Sequence, branch and loop are enough for every algorithm.
236
236
237
237
? How do you recognise a branch in a structure chart?
238
-
-[ ] By a bracket on the left side
238
+
-[ ] By an upside-down L
239
239
-[x] By a triangle with the condition and two columns below it
240
240
-[ ] By several rectangles on top of each other
241
-
> The bracket belongs to the loop, and rectangles on top of each other are a sequence.
241
+
> The upside-down L belongs to the loop, and rectangles on top of each other are a sequence.
242
242
243
243
? When does the inside of a loop run once more?
244
244
-[x] As long as the condition is true
@@ -253,10 +253,10 @@ richtig: branch
253
253
> An algorithm does not depend on a programming language. A structure chart is one way to write it down.
254
254
255
255
? How do you recognise a loop in a flowchart?
256
-
-[ ] By a bracket on the left side
256
+
-[ ] By an upside-down L
257
257
-[x] By an arrow that leads back up
258
258
-[ ] By the word WHILE
259
-
> The bracket belongs to the structure chart, and WHILE to pseudocode.
259
+
> The upside-down L belongs to the structure chart, and WHILE to pseudocode.
Copy file name to clipboardExpand all lines: web/lessons/pt/01-was-ist-ein-struktogramm.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,8 +79,8 @@ Se uma coisa deve acontecer **várias vezes**, não a escreves várias vezes. Em
79
79
É assim que se parece:
80
80
81
81
- Em cima está a condição, por exemplo *Prato não vazio*.
82
-
- Os passos que se repetem ficam **recuados** por baixo dela. À esquerda, o bloco forma um **parêntese** à volta deles.
83
-
- Antes de cada iteração, a condição é verificada. Enquanto for **true**, os passos dentro do parêntese são executados mais uma vez. Se for **false**, o programa continua por baixo do ciclo.
82
+
- Os passos que se repetem ficam **recuados** por baixo dela. Em cima e à esquerda, o bloco forma um **L invertido** à volta deles.
83
+
- Antes de cada iteração, a condição é verificada. Enquanto for **true**, os passos dentro do L invertido são executados mais uma vez. Se for **false**, o programa continua por baixo do ciclo.
84
84
85
85
::: diagramm l1-wiederholung.visustruct
86
86
Enquanto o prato não estiver vazio, dás uma garfada. Depois, o prato é levantado.
@@ -93,7 +93,7 @@ Enquanto o prato não estiver vazio, dás uma garfada. Depois, o prato é levant
93
93
Os blocos básicos tornam-se realmente úteis quando os combinas. Este diagrama contém os três: uma sequência de cima para baixo, uma [decisão]{.blau} e um [ciclo]{.rosa}. As caixas amarelas são [instruções]{.gelb} simples. As instruções dentro de uma decisão ou de um ciclo também são amarelas. Em rigor, o diagrama todo é uma sequência, porque a decisão e o ciclo também estão na fila de cima para baixo.
94
94
95
95
::: diagramm l1-grundbausteine.visustruct
96
-
Reconheces a decisão pelo triângulo e o ciclo pelo parêntese à esquerda. Tudo junto forma uma sequência.
96
+
Reconheces a decisão pelo triângulo e o ciclo pelo L invertido. Tudo junto forma uma sequência.
97
97
:::
98
98
99
99
Os blocos também podem ser **encaixados** uns dentro dos outros: um ciclo ou um ramo pode voltar a conter sequências, decisões e ciclos.
@@ -137,7 +137,7 @@ Beber o chá
137
137
138
138
### Comparação
139
139
140
-
-**Estrutograma:** blocos dentro de blocos, o ciclo é um parêntese à esquerda. Vês a estrutura num relance, e saltos malucos são impossíveis.
140
+
-**Estrutograma:** blocos dentro de blocos, o ciclo é um L invertido. Vês a estrutura num relance, e saltos malucos são impossíveis.
141
141
-**Fluxograma:** símbolos com setas, o ciclo é uma seta que volta para cima. Muito fácil de imaginar, mas os fluxogramas grandes ficam depressa confusos.
142
142
-**Pseudocódigo:** texto com indentação, o ciclo fica entre ENQUANTO e FIM ENQUANTO. Rápido de escrever e já perto do código de um programa.
143
143
@@ -235,10 +235,10 @@ richtig: decisão
235
235
> Num estrutograma não há saltos. Sequência, decisão e ciclo chegam para qualquer algoritmo.
236
236
237
237
? Como reconheces uma decisão num estrutograma?
238
-
-[ ] Por um parêntese do lado esquerdo
238
+
-[ ] Por um L invertido
239
239
-[x] Por um triângulo com a condição e duas colunas por baixo
240
240
-[ ] Por vários retângulos uns por cima dos outros
241
-
> O parêntese pertence ao ciclo, e retângulos uns por cima dos outros são uma sequência.
241
+
> O L invertido pertence ao ciclo, e retângulos uns por cima dos outros são uma sequência.
242
242
243
243
? Quando é que o interior de um ciclo é executado mais uma vez?
244
244
-[x] Enquanto a condição for verdadeira
@@ -253,10 +253,10 @@ richtig: decisão
253
253
> Um algoritmo não depende de nenhuma linguagem de programação. Um estrutograma é uma forma de o escrever.
254
254
255
255
? Como reconheces um ciclo num fluxograma?
256
-
-[ ] Por um parêntese do lado esquerdo
256
+
-[ ] Por um L invertido
257
257
-[x] Por uma seta que volta para cima
258
258
-[ ] Pela palavra ENQUANTO
259
-
> O parêntese pertence ao estrutograma, e ENQUANTO ao pseudocódigo.
259
+
> O L invertido pertence ao estrutograma, e ENQUANTO ao pseudocódigo.
260
260
261
261
? Associa cada símbolo do fluxograma ao seu significado.
0 commit comments