google / google/codeworld

Debugging activities feels weird when time is irrelevant

Offen
#718 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
discussion
Vorherrschende Sprache
Haskell
Sterne
1.3k
Forks
201
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Example: https://code.world/#P78hkv9hsakKxPJw-eO5LYw

Playing around with this, it's quite confusing that:

1. You must be paused to access the history, even though time has no effect on the program.
2. You must be unpaused to press the space bar and advance the simulation.

It's not completely clear what to do here. One option is to use the same trick we do for optimization, and just show the same controls as if the program is paused, any time the program ignores `TimePassing` events. (One exception is `PanningLayer`, which must be disabled if the program responds to mouse clicks, but could be left enabled while paused for a program that changes over time.) We could use `isUniversallyConstant` in `CodeWorld.Driver` to check both properties.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.