Brandon Dail
Brandon Dail
@brandondail.com
Staff Engineer at Discord working on Design Systems, Accessibility, Other Stuff™️ Collage & generative plotter artist 👋
5K followers404 following141 posts
Brandon Dail reposted
In my audits, reading the Performance profile is where people get stuck: the flame chart and waterfall look like noise at first I built an interactive guide to make them click, every figure is interactive, plus LCP, CLS, INP and the Insights panel perf.reviews/profile-guide #WebPerf #DevTools
I appreciate that @github.com wants to give me recognition for all this work, but I'd be reticent to take credit for all 21 million open pull requests
There are two main startup tasks for @discord.com: 1. Fetch and run all the JavaScript 2. Open a socket and get your data from the gateway Those were happening sequentially; now they are parallel! This improved P50 TTI by like 12%, over a second for many folks 📉 discord.com/blog/discord...
Here's your friendly reminder that CSS selectors are global and evaluated RTL, so if you have selectors that are very broad like `.container > div` you might be impacting performance in a measurable way 🙈 Before and after profile of server switching after some selector optimizations in @discord.com
Brandon Dail reposted
If you’re a React Native expert and want to help us make @discord.com better, hit me up 🤙 we’re looking!
we (@discord.com) rewrote our color token system to support these new themes, and its exciting 👀 in short: color tokens are defined using a constraint-based system where colors are defined with contrast ratios. change a base color and all affected tokens update in all themes, preserving contrast ✨
Brandon Dail reposted
Brandon Dail reposted
Replying to @seanmcarroll.bsky.social
In the meantime, as a reader: don’t trust any articles attributed to “staff,” and don’t trust any articles that don’t include quotes from scientists completely uninvolved in the original publication. Science is a gradual, meandering, back and forth process; sometimes we have to let it play out.
Brandon Dail reposted
Brandon Dail reposted
What does it mean for something to be Turing complete? I answer this question, and more, through a series of fully interactive Turing machine simulations! Play, pause, step forwards and backwards, and even write your own Turing machine programs in my latest blog post. samwho.dev/turing-machi...
One tension here is that current gen LLMs can have a ~high success rate for accurately predicting what a real answer would be (depending on your topic), so there’s undeniably some utility there but knowing when it’s NOT accurate is increasingly difficult which means you always need to be skeptical
Enforcing contrast requirements also becomes trivial. You can specify a minimum contrast ratio for text and ensure that no new text tokens can be created that don't meet your contrast requirements on some set of background colors. Designers no longer have to manually check contrast ratios everywhere
Brandon Dail reposted
Replying to @sultaninen.ch
If you want a really good deep dive into testing with screen readers, I strongly advise reading this guide by @sarasoueidan.com www.sarasoueidan.com/blog/testing... #a11y #screenReaders #accessibility