Skip to content

Commit 06e79a0

Browse 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>
1 parent 24db635 commit 06e79a0

11 files changed

Lines changed: 65 additions & 64 deletions

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is loosely inspired by Keep a Changelog.
88

99
### Added
1010

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“).
1112
- **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.
1213
- **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.
1314
- **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.

‎web/lessons/de/01-was-ist-ein-struktogramm.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ Soll etwas **mehrmals** passieren, schreibt man es nicht mehrmals hin. Stattdess
7979
So sieht sie aus:
8080

8181
- 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.
8484

8585
::: diagramm l1-wiederholung.visustruct
8686
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
9393
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.
9494

9595
::: 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.
9797
:::
9898

9999
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
137137

138138
### Im Vergleich
139139

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.
141141
- **PAP:** Symbole mit Pfeilen, die Schleife ist ein Pfeil zurück nach oben. Sehr anschaulich, aber bei großen Plänen schnell unübersichtlich.
142142
- **Pseudocode:** Text mit Einrückung, die Schleife steht zwischen SOLANGE und ENDE SOLANGE. Schnell geschrieben und schon nah am Programmcode.
143143

@@ -235,10 +235,10 @@ richtig: Verzweigung
235235
> Sprünge gibt es im Struktogramm nicht. Sequenz, Verzweigung und Wiederholung reichen für jeden Algorithmus.
236236
237237
? Woran erkennst du im Struktogramm eine Verzweigung?
238-
- [ ] An einer Klammer auf der linken Seite
238+
- [ ] An einem gekippten L
239239
- [x] An einem Dreieck mit der Bedingung und zwei Spalten darunter
240240
- [ ] 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.
242242
243243
? Wann wird der Inhalt einer Schleife noch einmal ausgeführt?
244244
- [x] Solange die Bedingung true ist
@@ -253,10 +253,10 @@ richtig: Verzweigung
253253
> Ein Algorithmus ist unabhängig von der Programmiersprache. Ein Struktogramm ist eine Möglichkeit, ihn aufzuschreiben.
254254
255255
? Woran erkennst du in einem Programmablaufplan (PAP) eine Schleife?
256-
- [ ] An einer Klammer auf der linken Seite
256+
- [ ] An einem gekippten L
257257
- [x] An einem Pfeil, der zurück nach oben führt
258258
- [ ] Am Wort SOLANGE
259-
> Die Klammer gehört zum Struktogramm, SOLANGE zum Pseudocode.
259+
> Das gekippte L gehört zum Struktogramm, SOLANGE zum Pseudocode.
260260
261261
? Ordne jedem Symbol im PAP seine Bedeutung zu.
262262
= Oval -> Start oder Ende

‎web/lessons/en/01-was-ist-ein-struktogramm.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ If something should happen **several times**, you do not write it down several t
7979
This is what it looks like:
8080

8181
- 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.
8484

8585
::: diagramm l1-wiederholung.visustruct
8686
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
9393
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.
9494

9595
::: 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.
9797
:::
9898

9999
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
137137

138138
### Compared
139139

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.
141141
- **Flowchart:** symbols with arrows, the loop is an arrow back up. Very easy to picture, but big charts quickly get confusing.
142142
- **Pseudocode:** text with indentation, the loop sits between WHILE and END WHILE. Quick to write and already close to program code.
143143

@@ -235,10 +235,10 @@ richtig: branch
235235
> There are no jumps in a structure chart. Sequence, branch and loop are enough for every algorithm.
236236
237237
? How do you recognise a branch in a structure chart?
238-
- [ ] By a bracket on the left side
238+
- [ ] By an upside-down L
239239
- [x] By a triangle with the condition and two columns below it
240240
- [ ] 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.
242242
243243
? When does the inside of a loop run once more?
244244
- [x] As long as the condition is true
@@ -253,10 +253,10 @@ richtig: branch
253253
> An algorithm does not depend on a programming language. A structure chart is one way to write it down.
254254
255255
? How do you recognise a loop in a flowchart?
256-
- [ ] By a bracket on the left side
256+
- [ ] By an upside-down L
257257
- [x] By an arrow that leads back up
258258
- [ ] 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.
260260
261261
? Match each flowchart symbol to its meaning.
262262
= Oval -> Start or end

‎web/lessons/pt/01-was-ist-ein-struktogramm.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ Se uma coisa deve acontecer **várias vezes**, não a escreves várias vezes. Em
7979
É assim que se parece:
8080

8181
- 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.
8484

8585
::: diagramm l1-wiederholung.visustruct
8686
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
9393
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.
9494

9595
::: 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.
9797
:::
9898

9999
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á
137137

138138
### Comparação
139139

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.
141141
- **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.
142142
- **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.
143143

@@ -235,10 +235,10 @@ richtig: decisão
235235
> Num estrutograma não há saltos. Sequência, decisão e ciclo chegam para qualquer algoritmo.
236236
237237
? Como reconheces uma decisão num estrutograma?
238-
- [ ] Por um parêntese do lado esquerdo
238+
- [ ] Por um L invertido
239239
- [x] Por um triângulo com a condição e duas colunas por baixo
240240
- [ ] 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.
242242
243243
? Quando é que o interior de um ciclo é executado mais uma vez?
244244
- [x] Enquanto a condição for verdadeira
@@ -253,10 +253,10 @@ richtig: decisão
253253
> Um algoritmo não depende de nenhuma linguagem de programação. Um estrutograma é uma forma de o escrever.
254254
255255
? Como reconheces um ciclo num fluxograma?
256-
- [ ] Por um parêntese do lado esquerdo
256+
- [ ] Por um L invertido
257257
- [x] Por uma seta que volta para cima
258258
- [ ] 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.
260260
261261
? Associa cada símbolo do fluxograma ao seu significado.
262262
= Oval -> Início ou fim

‎web/package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎web/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visustruct-web",
33
"private": true,
4-
"version": "0.13.7",
4+
"version": "0.13.8",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

0 commit comments

Comments
 (0)