2min chapter

Syntax - Tasty Web Development Treats cover image

Supper Club × Steve Ruiz Building a Drawing App

Syntax - Tasty Web Development Treats

CHAPTER

Using a State Machine to Translate Shapes

You can only have one session at a time. It's like a thing that begins and ends. So for example, you start dragging a shape around. Yo, you've drawn a shape. Now you've started moving it around. Ah, we ould call that like a translating session. And once this kicks off, only a couple of things can happen. Either it can can up date, like ocam moving the mouse now, i'm up dating right in the session. Or it can be cancelled. So maybe i press escape. I say, you know it, never mind. Put that thing back where it was. Or i'd complete it. We've created something like a

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode