Skip to content
This repository was archived by the owner on Nov 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The format is loosely inspired by Keep a Changelog.

### Added

- **Web 0.14.9, Margaret Hamilton and Hedy Lamarr with photo:** lesson 22 (try and catch) gets an Angeberwissen box on Margaret Hamilton: during the Apollo 11 landing in 1969 the onboard computer raised the alarms 1202 and 1201 but did not crash, because her team's software recognised the overload and kept only the most important jobs running; she called her work „software engineering“. Photo 1969 next to the printed Apollo programs (Draper Laboratory, Commons „Margaret Hamilton - restoration.jpg“, PD-US-no notice, 300×400). Lesson 15 (arrays) gets an Angeberwissen box on Hedy Lamarr: 1942 patent with George Antheil, sender and receiver hop through the same list of 88 frequencies in the same order (like a loop through an array), today's frequency hopping e.g. in Bluetooth; worded as an important forerunner, not the sole inventor. Publicity photo 1944 (Commons „Hedy Lamarr Publicity Photo for The Heavenly Body 1944.jpg“, PD-US-no notice, 300×400). de/en/pt.
- **Web 0.14.8, Katherine Johnson with photo:** lesson 7 step „Der Schreibtischtest“ gets an Angeberwissen box: „Computer“ used to be a job; in 1962 John Glenn asked Katherine Johnson to check the IBM computer's orbit calculation by hand before he flew (a real desk check); the toilet scene from „Hidden Figures“ is marked as exaggerated by the film; her colleague Dorothy Vaughan taught herself and her team FORTRAN. Followed by her portrait (NASA 1983, public domain, Commons „Katherine_Johnson_1983.jpg“, 300×400) (de/en/pt).
- **Web 0.14.7, area „Code“ and area colours:** the area „Programmieren“ is now called „Code“ (en „Code“, pt „Código“) in the app, all lessons, VisuBot lessons, tasks and glossary. Struktogramm and Code each have a colour (blue #007aff, violet #7c3aed): a coloured top edge, the slim strip when collapsed, and the area names on the exercise card („Löse diese Übung im Struktogramm und im Code.“). New exercise key `bereich: struktogramm | code | beide`: the card names the area(s) and „Im Editor öffnen“ shows exactly those: the lessons stay open, everything else (files, mBot2 live, the other area) is closed. Lesson 20 „Countdown“ and „Fakultät aus Java“ use `beide` (de/en/pt).
- **Web 0.14.6, Konrad Zuse in lesson 3:** after the punched card, an Angeberwissen box on Konrad Zuse: the Z3 (12 May 1941, Berlin, first working program-controlled digital computer, binary, about 2,000 relays, program punched into used cinema film), Plankalkül as one of the first programming languages, and Hünfeld near Fulda where he lived until 1995, with the Konrad Zuse Museum (Z3 replicas) as a school trip tip (no opening hours, pointer to the town's website). New self-drawn, text-free SVG l03-zuse-lochstreifen.svg of a punched film strip (hole = 1, no hole = 0) (de/en/pt).
Expand Down
Binary file added web/lessons/bilder/hedy-lamarr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/lessons/bilder/margaret-hamilton.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions web/lessons/de/15-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ tipp: Mit `int[] zahlen = new int[4]` legst du das Array an. Die Eingabe lautet
lösung: l14-rueckwaerts-loesung.visustruct
:::

::: angeberwissen
**Hedy Lamarr** aus Wien war in den 1940er-Jahren ein berühmter Hollywood-Filmstar. In ihrer Freizeit erfand sie gern. 1942 bekam sie zusammen mit dem Komponisten George Antheil ein Patent auf eine Funkverbindung, die der Feind nicht stören sollte: Sender und Empfänger springen gemeinsam durch eine Liste von **88 Frequenzen**, so viele, wie ein Klavier Tasten hat. Die Liste stand auf einem Lochstreifen wie bei einem selbstspielenden Klavier. Beide gehen dieselbe Liste in derselben Reihenfolge durch, so wie deine Schleife mit `i` durch ein Array. Wer nur eine Frequenz abhört oder stört, bekommt fast nichts mit.

Dieses **Frequenzsprungverfahren** (englisch *frequency hopping*) steckt heute zum Beispiel in Bluetooth. Ganz allein erfunden hat sie es nicht, es gab schon frühere Ideen. Ihr Patent gilt aber als wichtiger Vorläufer, und 1997 wurde sie dafür ausgezeichnet.
:::

::: bild hedy-lamarr.jpg
Hedy Lamarr (1914–2000), Schauspielerin und Erfinderin, 1944 (Pressefoto: [unbekannt](https://commons.wikimedia.org/wiki/File:Hedy_Lamarr_Publicity_Photo_for_The_Heavenly_Body_1944.jpg), gemeinfrei).
:::

## Summe und Maximum

Zwei Aufgaben kommen bei Arrays immer wieder vor:
Expand Down
10 changes: 10 additions & 0 deletions web/lessons/de/22-try-und-catch.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ try und catch sind wie das Netz unter dem Trapez im Zirkus: Solange alles klappt

> Im Struktogramm gibt es keinen Kasten für try und catch. VisuStruct zeigt den ganzen Block deshalb als eine Anweisung. Ausführen kannst du ihn nur mit echtem Java.

::: angeberwissen
Im Juli 1969 landete Apollo 11 auf dem Mond. Kurz vor der Landung meldete der Bordcomputer plötzlich die Fehler **1202** und **1201**: Er hatte mehr zu tun, als er schaffen konnte. Abgestürzt ist er trotzdem nicht. Das Team von **Margaret Hamilton** hatte die Software so gebaut, dass sie solche Fehler erkennt, Unwichtiges liegen lässt und nur das Wichtigste weiterrechnet. Die Landung klappte.

Margaret Hamilton leitete am MIT die Gruppe, die die Software für die Apollo-Raumschiffe schrieb. Sie plante immer ein, dass etwas schiefgehen kann, so wie du mit `try` und `catch`. Damit Software genauso ernst genommen wird wie Hardware, nannte sie ihre Arbeit **Software Engineering**. Heute heißt so ein ganzes Fach der Informatik.
:::

::: bild margaret-hamilton.jpg
Margaret Hamilton (geb. 1936) im Jahr 1969 neben den ausgedruckten Programmen, die ihr Team für Apollo geschrieben hat (Foto: [Draper Laboratory](https://commons.wikimedia.org/wiki/File:Margaret_Hamilton_-_restoration.jpg), gemeinfrei).
:::

## Text in eine Zahl umwandeln

Oft steht eine Zahl zuerst als Text da, zum Beispiel später in einem Textfeld im Fenster. `Integer.parseInt` wandelt Text in eine ganze Zahl um:
Expand Down
10 changes: 10 additions & 0 deletions web/lessons/en/15-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ tipp: You create the array with `int[] numbers = new int[4]`. The input is `inpu
lösung: l14-rueckwaerts-loesung.visustruct
:::

::: angeberwissen
**Hedy Lamarr** from Vienna was a famous Hollywood film star in the 1940s. In her spare time she liked to invent things. In 1942, together with the composer George Antheil, she received a patent for a radio link that an enemy should not be able to jam: sender and receiver jump together through a list of **88 frequencies**, as many as a piano has keys. The list was punched into a paper strip like the roll of a self-playing piano. Both go through the same list in the same order, just like your loop goes through an array with `i`. Anyone who listens to or jams only one frequency gets almost nothing.

This method, **frequency hopping**, is used today in Bluetooth, for example. She did not invent it all by herself; there were earlier ideas. But her patent is seen as an important forerunner, and in 1997 she received an award for it.
:::

::: bild hedy-lamarr.jpg
Hedy Lamarr (1914–2000), actress and inventor, 1944 (publicity photo: [unknown](https://commons.wikimedia.org/wiki/File:Hedy_Lamarr_Publicity_Photo_for_The_Heavenly_Body_1944.jpg), public domain).
:::

## Sum and maximum

Two tasks come up with arrays again and again:
Expand Down
10 changes: 10 additions & 0 deletions web/lessons/en/22-try-und-catch.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ try and catch are like the net under the trapeze at the circus: as long as every

> The structure chart has no box for try and catch. So VisuStruct shows the whole block as one statement. You can only run it with real Java.

::: angeberwissen
In July 1969, Apollo 11 landed on the Moon. Shortly before touchdown, the onboard computer suddenly reported the errors **1202** and **1201**: it had more work than it could handle. Still, it did not crash. **Margaret Hamilton**'s team had built the software so that it recognised such errors, put aside the unimportant jobs and kept only the most important ones running. The landing succeeded.

Margaret Hamilton led the group at MIT that wrote the software for the Apollo spacecraft. She always planned for things going wrong, just like you do with `try` and `catch`. So that software would be taken as seriously as hardware, she called her work **software engineering**. Today a whole field of computer science has that name.
:::

::: bild margaret-hamilton.jpg
Margaret Hamilton (born 1936) in 1969, next to the printed programs her team wrote for Apollo (photo: [Draper Laboratory](https://commons.wikimedia.org/wiki/File:Margaret_Hamilton_-_restoration.jpg), public domain).
:::

## Turning text into a number

Often a number is text at first, for example later in a text field in a window. `Integer.parseInt` turns text into a whole number:
Expand Down
10 changes: 10 additions & 0 deletions web/lessons/pt/15-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ tipp: Crias o array com `int[] numeros = new int[4]`. A entrada é `input: numer
lösung: l14-rueckwaerts-loesung.visustruct
:::

::: angeberwissen
**Hedy Lamarr**, nascida em Viena, era uma estrela de cinema famosa de Hollywood nos anos 40. Nos tempos livres gostava de inventar. Em 1942, juntamente com o compositor George Antheil, recebeu uma patente para uma ligação de rádio que o inimigo não conseguisse perturbar: o emissor e o recetor saltam juntos por uma lista de **88 frequências**, tantas como as teclas de um piano. A lista estava perfurada numa fita de papel, como o rolo de um piano automático. Os dois percorrem a mesma lista pela mesma ordem, tal como o teu ciclo percorre um array com `i`. Quem escuta ou perturba só uma frequência quase não apanha nada.

Este método, o **salto de frequência** (em inglês *frequency hopping*), é usado hoje, por exemplo, no Bluetooth. Ela não o inventou sozinha, já havia ideias anteriores. Mas a sua patente é vista como uma precursora importante, e em 1997 recebeu um prémio por isso.
:::

::: bild hedy-lamarr.jpg
Hedy Lamarr (1914–2000), atriz e inventora, 1944 (foto promocional: [desconhecido](https://commons.wikimedia.org/wiki/File:Hedy_Lamarr_Publicity_Photo_for_The_Heavenly_Body_1944.jpg), domínio público).
:::

## Soma e máximo

Há duas tarefas que aparecem sempre com arrays:
Expand Down
10 changes: 10 additions & 0 deletions web/lessons/pt/22-try-und-catch.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ try e catch são como a rede por baixo do trapézio no circo: enquanto tudo corr

> No estrutograma não há nenhuma caixa para try e catch. Por isso o VisuStruct mostra o bloco inteiro como uma instrução. Só o podes executar com o Java verdadeiro.

::: angeberwissen
Em julho de 1969, a Apollo 11 aterrou na Lua. Pouco antes da aterragem, o computador de bordo mostrou de repente os erros **1202** e **1201**: tinha mais trabalho do que conseguia fazer. Mesmo assim, não falhou. A equipa de **Margaret Hamilton** tinha construído o software de forma a reconhecer esses erros, deixar de lado as tarefas pouco importantes e continuar só com as mais importantes. A aterragem correu bem.

Margaret Hamilton dirigia no MIT o grupo que escreveu o software das naves Apollo. Ela contava sempre com a possibilidade de algo correr mal, tal como tu fazes com `try` e `catch`. Para que o software fosse levado tão a sério como o hardware, chamou ao seu trabalho **software engineering** (engenharia de software). Hoje, uma área inteira da informática tem esse nome.
:::

::: bild margaret-hamilton.jpg
Margaret Hamilton (nascida em 1936) em 1969, ao lado dos programas impressos que a sua equipa escreveu para a Apollo (foto: [Draper Laboratory](https://commons.wikimedia.org/wiki/File:Margaret_Hamilton_-_restoration.jpg), domínio público).
:::

## Transformar texto num número

Muitas vezes um número começa por ser texto, por exemplo mais tarde num campo de texto numa janela. `Integer.parseInt` transforma texto num número inteiro:
Expand Down
4 changes: 2 additions & 2 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visustruct-web",
"private": true,
"version": "0.14.8",
"version": "0.14.9",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
Loading
Loading