ShopTalk

741: Pseudo-pseudo-classes and Rainy Day Projects

· Summarized

Share this episode
Anyone with this link can open it.
Share Link
Start at 0:00

Key takeaways

  • Dave’s custom-state demo lets interactive component states such as hover, focus, and active appear side by side without adding demo-only state classes to production CSS.
  • Adopted style sheets and ElementInternals provide the web-component capabilities that make the state-demo technique possible, including custom states and better encapsulation.
  • AI-generated UI should use an existing design system rather than recreating components, because attractive output can still fail accessibility, performance, and convention checks.
  • AI is particularly useful for neglected personal projects, such as archiving exported tweets, building a trip-planning site, or automating WordPress plugin publishing.
  • The hosts believe coding AI has lasting utility because tests, linters, and other software-development guardrails help constrain its mistakes.
  • Dave’s preferred distinction is that AI helping individuals or small teams punch up is valuable, while AI helping management punch down is damaging.

Summary

Otis becomes a minor character in Dave’s kids’ cinematic universe

Dave says his son Otis is now effectively a participating member of Weezer, though he remains a normal kid rather than acting famous. Otis has also become a social center: after inviting about ten teenage boys over for Halloween, they all knew Dave by name and called him “Dave Rupert.com,” while calling Dave’s wife “Dave’s wife.” Chris compares Dave to a talking NPC in the boys’ cinematic universe. Chris then describes a delayed birthday party for his daughter and a daddy-daughter swim challenge in which his eight-year-old daughter beat him badly in both front crawl and backstroke.

Their children are outperforming them musically and athletically

Dave jokes that he will not mention his daughter being a national champion at cheer because Otis’s accomplishments are enough competition. Otis has had perfect pitch since infancy and recently took up guitar; Dave says his son’s lead guitar playing is astonishing, even though Otis works hard rather than being a child virtuoso. Dave claims rhythm is his remaining musical contribution. Chris’s daughter is joining School of Rock as a singer, where she will learn not just songs but microphone technique, confidence, and crowd work. Both hosts like that placing children in bands forces them to cooperate and learn one another’s strengths.

Dave’s pseudo-pseudo-classes expose every component state

Dave introduces a technique for showing interactive component states—hover, focus, active, visited, and similar variants—without requiring viewers to operate each control manually. His demo creates custom states such as “hover” and applies them to a web component so a button can display its hover appearance beside its normal appearance. Rather than shipping extra production CSS, the demo reads the component’s adopted style sheet, finds relevant pseudo-class rules, rewrites them to use custom states, and installs a separate adopted style sheet only in the demo. Updating the original button CSS automatically updates the displayed state.

Web-component internals make the demo possible

The technique depends on several web-platform features: adopted style sheets keep styles as real style-sheet objects rather than injected style or link strings; ElementInternals provides custom states and can also support form participation, validity, and accessibility-related behavior; and the host can be styled with selectors such as a custom state. Dave notes that adding a class would cause a DOM mutation and could work, but custom states more directly express a component’s state. The approach is niche and requires rewriting selectors carefully, especially rules involving host selectors, but browser support has improved, including recent Safari support.

AI should be kept inside the design system’s guardrails

Dave recommends the AI and Design Systems course by Brad Frost and TJ VanToll’s circle of design-system experts, saying it addresses how to keep AI-generated prototypes and production work on the rails. He recently asked AI to build a landing page and found that it created attractive tabs, but only after inspection did he realize it had recreated a tabs component instead of using the existing one. Chris objects that such generated components may fail the organization’s accessibility review, performance targets, and established conventions. They conclude that simply telling AI to use the design system is harder than it sounds and requires context, rules, and validation.

Chris turns his exported tweets into a self-hosted archive

Chris explains that X/Twitter lets users export their complete history, including uploaded images and videos. He had bookmarked a WordPress project that converts that export into a website archive, and AI helped him finish the rainy-day project without spending an entire weekend relearning the details. The archive now appears in his site search with tweet text, dates, metadata, images, and videos. Dave says old posts often survive only as block quotes after account deletion, but Chris likes the idea of actually owning and preserving the material on his own site. They see AI as useful for completing projects that are valuable but never urgent.

AI makes a Wichita trip into a useful little website

Dave describes using AI to research an upcoming visit to Wichita, Kansas: he looked up barbecue, coffee, Christmas shopping, a large illuminated “King of the Plains” statue, restaurants, maps, hours, and other suggestions. He fed those notes and an aesthetic brief into CodePen’s AI tools and produced a mobile-friendly trip website in about fifteen minutes. Dave rejects the idea that it is merely useless web slop because it gives his friends one place to review their restaurant and activity options. Chris agrees that AI amplifies what users provide: thoughtful research can produce a useful result, while vague input produces garbage.

The web may be more useful when more people can make sites

Chris says he deliberately rebuilt a game the old-fashioned way—searching for solutions, reading Stack Overflow, and writing the code manually—because the slower process was enjoyable and helped him retain the underlying skills. Dave distinguishes that from his travel project, where the enjoyable part was research and planning rather than styling the output. They also discuss a friend who made a soccer-clip site and a dishwasher installer who used Claude to combine appointments from five providers into a daily management tool. Dave sees this as an encouraging expansion of the web’s utility: people can create small, shareable tools for their own problems even without traditional coding skills.

AI may survive a bubble collapse, but it can also amplify bad incentives

Dave says he sees concrete benefits from AI but still recognizes ethical, economic, and environmental concerns, including Ed Zitron’s arguments that the industry’s macroeconomics are weak. Even if the current bubble deflates, he expects coding assistance—autocomplete, scaffolding, and tested application generation—to persist in some form because software has linters, tests, and deployment guardrails. He worries that AI can also flood the internet with low-value sites. His rule of thumb is that AI helping individuals or small teams “punch up” is good, while helping management “punch down” is harmful. The hosts also note that social platforms have become hostile toward AI discussions.

A GitHub Action finally hides WordPress’s Subversion requirement

Dave’s final rainy-day project addresses the technical debt of WordPress plugins still being published through Subversion. He regularly uses the Versions Mac client and repeatedly has to reset WordPress.org credentials, but never fully learned the command-line workflow because he is deeply accustomed to Git. A 10up GitHub Action lets plugin authors work normally in Git, store the Subversion key as a GitHub secret, and automatically publish to WordPress when code reaches the main branch. Dave had Claude install and fix the setup in minutes. He says this kind of automation is excellent when it removes tedious work, though careful developers still need to review what the AI invents.

Sponsors

  • AI and Design Systems · The course explains how to keep AI using a team’s design-system components and conventions instead of inventing new ones. It covers practical setups involving context, MCPs, skills, rules, validation, prototyping, quality checks, and keeping AI-generated work accessible and performant. The hosts offered coupon code “shoptalkshow” for 15% off. Teams of three or more receive automatic discounts: 20% for three-plus people and 30% for eight-plus.

Show notes

Show Description

Mouth blogging pseudo-pseudo-classes for maximum interactive demos, exporting tweets to WordPress, rainy day AI projects, is the web more useful now for everyone, and how are WordPress plugins still on Subversion?

Listen on Website

Watch on YouTube

Links

Sponsors

AI and Design Systems

Keep AI on the rails of your design system. This is the thing the whole industry is trying to figure out: how do you get AI to use YOUR components and conventions instead of making up its own? We walk through our real setups, with context, MCPs, skills, rules, and validation all working together, because no single trick does it on its own.

Follow this show on AudioBrevity and new episodes get summarized for you. Create a free account

Couldn't load the audio. A blocker may be stopping the show's tracking links. Open the file