Building tic-tac-toe with Svelte
Hello, and thanks for subscribing to my newsletter!
Yesterday I published a new blog post, "Building tic-tac-toe with Svelte." In the post I show what considerations went into building this demo - it's more than you might think! Included are discussions of:
- the importance of
<button>
- how using reactive statements really simplifies the game flow
- event forwarding
- focus management and
tick
- visually-hidden button labels
- when it's okay to use querySelector in Svelte
Other updates
With all the... everything... on Twitter these days, I've set up shop over on Mastodon. I'll still be posting updates and new articles over on Twitter, but my social media focus is shifting over to Mastodon. So far I've found it a welcome change of pace.
My SvelteKit adapter for Azure Static Web Apps also saw a new release, which should really simplify the setup process.
Reading list
Here's a few articles and sites I've enjoyed lately.
A beautifully-designed site to help you find e-books at your local library via Libby.
Browsers, JSON, and Form Data by Jim Nielsen. "A big impediment to moving away from SPAs is that we’ve collectively spent years building up an entire infrastructure of backend services which power the internet by communicating with browsers in JSON — a format that is not the default method of communication for web browsers. Browsers cannot communicate user actions over the network as JSON without the use of JavaScript. It’s impossible."
Some beautiful generative art og-images. Good inspiration for my ongoing experiments with Vercel's Satori library.
5 takeaways from screen reader usability interviews. A good reminder that even if you use a screen reader to test accessibility, frequent screen reader users may have vastly different ways of interacting with your site.
Retro spotlight: Super Mario Land 2: 6 Golden Coins. I replayed this game lately and this article is a good look at what makes this Game Boy platformer so special.
Cat update
We got a new dining table with a tablecloth and Oliver and Percy are a big fan of their new perches.
Wrapping up
Until next time! I'm still figuring out what I want this newsletter to be, so if you have any feedback or suggestions, let me know by replying to this email.