最新文章

今日新增 414 篇 · 共 7,394 篇 · 来自 241 个博客

Josh W. Comeau··Josh W. Comeau

The Rules of Margin Collapse

“Margin collapse” has a dastardly reputation, one of the trickier parts of CSS. Fortunately, it gets a lot easier once you learn a few rules! In this tutorial, we take a deep dive into the governing principles, and learn how to use them to

brandur.org··Brandur Leach

Feature Casualties of Large Databases

AI 摘要The article describes how large databases tend to lose important features over time—such as ACID transactions, referential integrity, non-nullable columns, efficient indexing, and expressive SQL access—due to technological limitations, stability concerns, cost, and convenience, often reducing sophisticated systems to glorified key/value stores. The author argues this degradation isn't inevitable, citing systems like Citus, Spanner, and CockroachDB that restore difficult features like cross-shard transactions, and proposes operations-friendly improvements such as pauseable index builds, easier NOT NULL migrations, a strict SQL dialect, query efficiency signaling, and built-in migration frameworks.

Sam Altman··Sam Altman

The Strength of Being Misunderstood

AI 摘要The article argues that caring what others think isn't inherently wrong—the real question is whose opinions you value and on what timescale. The most impressive people often care about others' opinions but focus on long-term judgment rather than short-term approval, willingly trading short-term low status for long-term high status. As long as you end up being right, being misunderstood by most people becomes a strength, giving you and a small group of rebels space to solve important problems that would otherwise go unsolved.

Svelte Blog·

What’s new in Svelte: December 2020

AI 摘要This December 2020 edition of 'What's new in Svelte' highlights recent Svelte releases (3.29.5–3.31.0) featuring custom web component support, a new hasContext lifecycle function, and the SvelteComponentTyped class for improved TypeScript integration, alongside updates to rollup-plugin-svelte, Sapper, and news about SvelteKit. The article also showcases community projects such as narration.studio, Pattern Monster, and various demos, learning resources, and component libraries. It closes with an invitation to get involved with the Svelte community through Svelte Society, Reddit, and Discord.

Lea Verou··Lea Verou

Position Statement for the 2020 W3C TAG Election

AI 摘要This article is Lea Verou's position statement for the 2020 W3C TAG election, in which she presents her cross-disciplinary background spanning front-end development, open source work, W3C standards participation, and PhD research at MIT on programming language design and human-computer interaction. If elected, she pledges to make Web technologies more learnable and approachable, favor declarative HTML/CSS solutions over JS-only APIs, improve platform extensibility, and document implicit design principles. The statement is supported by endorsements from prominent figures in the Web community, and an update notes that she was ultimately elected.

Preshing on Programming··Jeff Preshing

A Small Open Source Game In C++

AI 摘要The author has released Flap Hero, a free, open source Flappy Bird clone written entirely in C++, with MIT-licensed source code and public domain assets available on GitHub. The game was created to promote Plywood, a module-oriented open source C++ framework (not a game engine) that integrates third-party libraries like Assimp, SoLoud, stb, and GLFW through its workspace and built-in modules. Flap Hero exemplifies the lean, 'handmade' software style Plywood is designed to support, and the author plans future work such as a GUI build manager, with a source code review to follow in the next blog post.

Josh W. Comeau··Josh W. Comeau

Boop!

AI 摘要This article is an in-depth tutorial on creating an adorable interaction called the 'boop'. It teaches how to use React components and hooks to abstract behaviors and design a clean, well-crafted API. The author notes that even readers who aren't interested in animations will find the content worthwhile.

Lea Verou··Lea Verou

The case for Weak Dependencies in JS

AI 摘要Lea Verou advocates for a 'weak dependencies' pattern in JavaScript, where libraries detect and leverage optional peer dependencies already loaded in the environment to provide enhanced functionality, while falling back to simpler, dependency-free implementations otherwise. She argues this progressive enhancement approach offers benefits like better performance, smaller bundles, and flexibility in choosing among multiple libraries, and defends it against criticism that it's an unpredictable antipattern by noting it complements rather than replaces explicit parameter injection. Finally, she explores how this could work with ESM—which currently offers no way to detect if a module is already loaded without importing it—suggesting solutions like a global module registry or a weak dynamic import syntax such as import(url, {weak: true}).

Tailwind CSS Blog·

Tailwind CSS v2.0

Today we're finally releasing Tailwind CSS v2.0, including an all-new color palette, dark mode support, and tons more!

Distill·

Understanding RL Vision

With diverse environments, we can analyze, diagnose and edit deep reinforcement learning models using attribution.