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.
30 new today · 2,701 articles · from 79 blogs
I rewrote kentcdodds.com using the latest technologies and I want to talk about what I did.
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.
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.
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.
CSS keyframe animations are incredibly flexible and powerful, but they’re also a bit weird. In this deep-dive tutorial, we'll learn how CSS keyframes work from the ground up, and see how to use them to build high-quality animations. Keep re
AI summaryThe next Cross Team Collaboration Fun Times (CTCFT) meeting is scheduled for 2021-09-20 at 21:00 EST in an Asia-friendly time slot, with a detailed agenda to be announced in a few weeks. The agenda is expected to center on Rust interest groups and domain working groups exploring areas such as game development, cryptography, machine learning, formal verification, and embedded development. The meeting will discuss how these groups operate and how to better connect them with the Rust org, and unlisted interest groups are invited to get in touch.
AI summaryThe article explains that caching, despite being a best practice, can destabilize distributed systems: when a cache empties, increased latency and backend database load form a self-reinforcing 'bad loop' that, like the healthy 'good loop,' can persist indefinitely—a classic metastable failure. This failure mode is insidious because load testing often misses it (caches love load, and the problem stems from atypical key frequency distributions), and caches rest on informal assumptions about access locality that may silently change. The author notes CPU caches avoid this issue because they operate with feedback loops like back pressure and limited concurrency, which hints at safer patterns for using caches in distributed systems.
Almost 6 months in the making, we finally released Tailwind UI Ecommerce — the first all-new component kit for Tailwind UI since the initial launch back in February 2020.
AI summaryThe author, inspired by discussions around replacing the collapsed Arecibo Telescope (and the conventional Next Generation Arecibo Telescope proposal), offers a semi-serious alternative: replacing the heavy, complex suspended receiver platform with a swarm of drones, each carrying an antenna, flying in coordinated formations above a large reflective dish. By combining signals sampled at thousands of points with advanced signal processing, such a drone array could theoretically be far cheaper and more capable than traditional designs. The author acknowledges major challenges—drone reliability, battery life, positional stability, and especially the drones' electrical noise drowning out faint astronomical signals—but suggests these might be surmountable.
The “transform” property is such a powerful part of the CSS language! In this blog post, we'll take a deep look at this property and see some of the nifty things it can do. Keep reading.
AI summaryThe article explains why high-percentile latency is a poor measure of system efficiency, using a simple queueing model to show that queue depth (and thus latency) grows non-linearly as utilization approaches 1. Efficiency work that increases capacity temporarily drops utilization and dramatically improves tail latencies, but as load grows or capacity is trimmed, utilization creeps back up and latencies return to their previous levels, often disappointing teams. The author concludes that high-percentile latency is better understood as a leading indicator of impending overload, and that mean (average) latency should be used instead to measure efficiency.
AI summaryVue.js 3.2, codenamed "Quintessential Quintuplets", has been released with no breaking changes, bringing stable SFC features like
AI summaryJuly was the most active month for the Svelte core repo since late 2019, with the release of Svelte 3.39.0, 3.40.0, and 3.41.0, adding features like the |trusted event modifier, shadow DOM support, a new svelte/ssr package, and new export and await syntaxes. SvelteKit also received updates including friendlier error messages, improved cookie handling, prerender.onError, and better types. The post wraps up with community showcases, educational content, and new libraries and tools such as Svelte-Capacitor v2.0.0, svelte-remixicon, and Kahi UI.
We just released Headless UI v1.4, which includes a brand new `Tab` component, and new APIs for manually closing `Popover` and `Disclosure` components more easily.
A case study of how Elixir is being used at X-Plane.
As software developers, we're always learning new things; it's practically the whole gig! If we can learn to quickly pick up new languages/frameworks/tools, we'll become so much more effective at our job. It's sort of a superpower. Keep rea