How I built a modern website in 2021
I rewrote kentcdodds.com using the latest technologies and I want to talk about what I did.
409 new today · 7,402 articles · from 241 blogs
I rewrote kentcdodds.com using the latest technologies and I want to talk about what I did.
AI summaryThe 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 summaryThe 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 summaryThe 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 summaryThe 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 summaryThe 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 summaryThe 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.
AI summaryAlthough common Postgres wisdom says unbounded text is preferable to varchar(n) since length constraints offer no performance benefit, the author recounts how at Stripe the lack of length checks on API text fields let legitimate users send enormous payloads that couldn't later be restricted without breaking backwards compatibility (a manifestation of Hyrum's law). He now recommends using varchar columns with liberal, standardized length tiers (e.g., 200, 2000, and 20000 characters) as a database-level backstop against wildly invalid data, while still validating lengths in application code with proper error handling. He also notes that Postgres can relax varchar constraints without an expensive table rewrite, and suggests encoding these tiers as SQL domains for consistency.
AI summaryThe article describes how the authors evaluated Go's database ecosystem—including database/sql, pgx, go-pg, and gorm—and concluded that sqlc paired with pgx is the best solution for using Postgres in Go applications. sqlc generates type-safe Go code from annotated SQL files, eliminating string-based query fragility and ORM boilerplate while providing compile-time validation through Postgres's real query parser. Although it has some limitations like fixed parameter counts and pre-structured updates, workarounds exist, and recent pgx driver support allowed the team to adopt it incrementally alongside their existing codebase.
AI summaryThe article explores what makes Rust feel empowering to its users, noting that people love that the language makes it possible to build reliable and efficient software that otherwise feels out of reach. The author argues that if this sense of empowerment can be precisely described, that description can then be used to improve Rust and guide the design of future extensions to the language.
Focusing on long-term rewards, exploration, and frequently updated item.
What components are needed for building learning algorithms that leverage the structure and properties of graphs?
Understanding the building blocks and design choices of graph neural networks.
AI summaryThis September 2021 update celebrates Svelte being voted StackOverflow's most loved web framework and details recent 3.42.x releases, which added features like use:actions on and reduced compiled output size. SvelteKit made significant progress toward its 1.0 release, closing over 100 milestone issues and adding new capabilities such as the sequence helper, a handleError hook, and adapter-node middleware support. The post also showcases community apps, educational content, and libraries built with Svelte.