Playing a bit with developing little language learning games in . It turns out refreshingly easy to do these simple GUIs, and the bundled smiley faces in pict/face make it even simpler:)

I don't yet understand though how to manage state in GUIs without imperatively mutating variables. Ideally I would use something like a Python generator or Task to store and advance the current challenge, but I'm too new to Racket to figure out how to do it. Any hints?

· · Web · 1 · 0 · 0

Okay, moved the state to a closure, that resembles a generator, but can also return its last state multiple times until asked to move to the next element explicitly.

Show thread
Sign in to participate in the conversation
La Quadrature du Net - Mastodon - Media Fédéré

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!