AI 摘要This post reviews the source code of Flap Hero, a small C++ game built without an existing game engine, explaining how it is organized using the Plywood framework and how it differs from larger game projects. The author evaluates the deliberate omission of typical engine subsystems—abstract scene representation, a shader manager, a physics engine, and an asset pipeline—rating each choice as OK, Good, or Bad based on the trade-offs involved. Overall, the article suggests Flap Hero is a valuable learning resource for novice and intermediate game developers, though some simplifications (like hand-managed shaders and no asset pipeline) proved disadvantageous.
“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
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.
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.
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.
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.
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.
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}).
AI 摘要The author revisits his five-year-old article on creating CSS pie charts, now recommending conic gradients since they are supported in over 87% of browsers, while advising against his old -prefix-free polyfill as too heavy a dependency for modern sites. Instead, he suggests graceful degradation using @supports, with a conic-gradient pie chart in modern browsers and a linear-gradient progress bar fallback for browsers like IE11, optionally using CSS variables and square dimensions to keep layouts consistent. He also explains why radial gradients make poor fallbacks, since their areas do not proportionally represent percentages without complex math.
AI 摘要The article announces SvelteKit, the successor to Sapper, explaining that rather than releasing Sapper 1.0, the Svelte team is rewriting and rebranding the app framework to simplify onboarding and modernize its foundational assumptions. SvelteKit embraces an unbundled development workflow powered by Snowpack for near-instant startup and hot module reloading, and fully supports serverless deployment platforms via an adapter API, while still using Rollup for production builds and allowing fully static or Node-based apps. A public beta is expected within weeks, with full TypeScript support at launch, straightforward migration from Sapper, and the guarantee that Svelte can still be used standalone or with third-party frameworks.