Introducing the new kentcdodds.com
This site just experienced a huge rewrite and I want to show you around a bit.
今日新增 417 篇 · 共 7,410 篇 · 来自 241 个博客
This site just experienced a huge rewrite and I want to show you around a bit.
Simple baselines, ideas, tech stacks, and packages to try.
AI 摘要The author discovered that the CSS prefers-color-scheme media query reflects the user agent's (app's) color theme preference rather than the OS-level setting, after a dark-mode detection script reported dark mode ON inside Reeder's in-app browser while the phone's OS was set to light mode. Testing across devices confirmed that the app-level theme takes precedence over the OS-level preference. Consulting the CSS specification revealed this is intentional behavior, as user agent preferences are expected to override OS-wide settings.
Algorithms that make their reasoning visible
AI 摘要This article is the second part of a series on dyn async traits in Rust, addressing the key challenge that dyn types must specify values for all associated types. It explores how dyn traits currently work in Rust, explaining that a dyn-safe trait like DoTheThing is implemented by its corresponding dyn type. The post also examines the background behind this limitation and where it comes from.
AI 摘要After five years at egghead, where the author progressed from illustrator to art director and eventually focused on UX and product design, they decided it was time to move on. Driven by a desire to engage more deeply in the growing 'tools for thought' ecosystem, they have now joined HASH as design lead. There, the team is building a knowledge management platform backed by schemas and structured data.
AI 摘要This October 2021 edition of "What's new in Svelte" marks one year of the monthly roundup and covers recent Svelte releases, including no-op SSR lifecycle functions and improved TypeScript integration. It also details SvelteKit's progress toward version 1.0 with nearly 100 pull requests, breaking changes, and a call for community contributors, alongside community showcases of apps, podcasts, tutorials, and new libraries. The post concludes with a call for speakers for Svelte Summit Fall 2021, scheduled for November 20.
AI 摘要The author and Tyler Mandry have been working on implementing async fn in traits in Rust, with their design thoughts collected on the async fundamentals initiative website. This blog post series focuses specifically on the challenge of combining dyn with async fn. This first post introduces the problem and the overall goal they are aiming for, though they don't yet know the best way to achieve it.
I rewrote kentcdodds.com using the latest technologies and I want to talk about what I did.
AI 摘要The article discusses the growing trend of websites aggressively prompting visitors to install native apps, sometimes even locking web content behind an 'appwall' that can't be bypassed without downloading the app. The author reflects on why companies prioritize native applications over their functional websites—citing factors like declining web advertising revenue, data collection, and technical needs—and compares the pattern to the old 'full website' links from the early responsive-design era. Ultimately, the author sees these prompts as revealing insights into companies' design priorities and the diminishing business value they place on the open, universally accessible web.
[Updated on 2022-03-13: add expert choice routing.] [Updated on 2022-06-10]: Greg and I wrote a shorted and upgraded version of this post, published on OpenAI Blog: “Techniques for Training Large Neural Networks”
AI 摘要The article explains that content models must not be built with design-system thinking when supporting an omnichannel content strategy, because layout-based models fragment content and make it unintelligible to other delivery channels. Instead, effective content models should be semantic—using type and attribute names that reflect content meaning, such as those found in Schema.org—and should keep related content connected rather than sliced into visual components like 'tab sections.' Following these principles allows content to be reused across websites, search snippets, voice interfaces, and bots, while also decoupling content from design so teams can evolve layouts without costly content migrations.
AI 摘要The author reflects on going for a short, slow run on Friday after being unable to run for five weeks, describing it as an emotional gift. They discuss the phrase 'making noisy into quiet,' noting how writing, design, and running have historically created pockets of calm in their noisy days. Though not completely healed and still facing challenges, the author expresses deep gratitude for being able to write, run, and spend time with family again.
Why this is the first rule, some baseline heuristics, and when to move on to machine learning.
AI 摘要The author reflects on conversations with the Rust community following the announcement of the Rustacean Principles, noting that sparking discussion was the intended goal. Since the principles were mostly developed through iteration between the author and Josh, they primarily reflect their own experiences. To truly serve their purpose, the principles need input from the community as a whole.
AI 摘要The next CTCFT (Cross Team Collaboration Fun Times) meeting is scheduled for September 20, 2021, with an agenda focused on Rust interest groups and domain working groups. Rather than fixed presentations, the meeting will feature a panel discussion with representatives from these groups, led by AngelOnFira. The goal is to foster more active two-way communication and feedback between the interest groups and the Rust teams.
An overview of system design, candidate retrieval, and ranking, with industry examples.
AI 摘要The article argues for the addition of a native HTML element that maps to the ARIA search landmark role, similar to how corresponds to role="navigation" and to role="main". The author contends that because search is a heavily used feature on many websites, such an element would provide HTML parity with ARIA, fill a semantic gap, reduce reliance on ARIA, and improve navigation efficiency for assistive technology users. An update notes that the element was subsequently added to the HTML specification on March 24th, 2023.
When I look around the web, most of the shadows I see are fuzzy grey boxes. It doesn't have to be this way, though! CSS gives us the tools to create rich, lush, lifelike shadows. In this tutorial, I'll show you how. Keep reading.