Of all the little tips and techniques I've picked up over the years about animation, spring physics remains one of the most powerful and flexible. In this tutorial, we'll learn how to harness their power to build fluid, organic transitions.
AI 摘要Vue.js 3.0 'One Piece' has been officially released after more than two years of development, offering significant performance improvements (smaller bundles, faster renders, less memory usage), a rewritten modular architecture, better TypeScript integration, and the new Composition API for large-scale applications. Experimental features such as
AI 摘要The author shares a chart, created in Excalidraw, illustrating how developer priorities evolve over a career, which resonated widely after being posted on Twitter. They explain that beginners focus solely on making code work, while experienced developers come to prioritize readability and maintainability, since bugs can be fixed relatively quickly but unreadable codebases are costly to rewrite. The author also describes the 'peak of drought,' where developers over-apply DRY principles and design patterns to the point of producing unreadable code, before eventually learning to favor readability over excessive abstraction.
AI 摘要Parsel is a tiny, permissive JavaScript library created for the Web Almanac that parses CSS selectors, walks the resulting AST, and calculates specificity, available as an ES module or a global. It uses a hybrid approach: strings and parentheses are first extracted character-by-character (since nested structures cannot be parsed by regexes), after which the remaining simplified language is tokenized with regexes in an approach inspired by Prism. The author is asking users to report bugs, particularly valid selectors that are parsed incorrectly, ahead of its use for upcoming Almanac stats, while noting that mishandling of invalid selectors is by design.
Today we're launching the official Heroicons web experience, which makes it easier than ever to search for icons and quickly copy them to your clipboard as Tailwind-ready HTML or JSX.
AI 摘要This article investigates license-based AVX-512 downclocking on Intel's new Ice Lake and Rocket Lake client chips using the avx-turbo benchmarking tool. It finds that the Ice Lake i5-1035G4 shows only a 100 MHz penalty for 512-bit instructions with one active core and no license-based downclocking in any other scenario, while the Rocket Lake i9-11900K shows none at all even with heavy AVX-512 on all eight cores. Unlike Skylake-SP, these chips no longer distinguish between light and heavy instructions, so AVX-512's frequency penalty is essentially eliminated on client parts.
Back in May we published our first job posting for a full-stack developer to join our team. This is the story of how we worked through almost 900 applications, and eventually hired Robin Malfait, a talented developer from Belgium who is sta
AI 摘要The author has released a new Rust crate called propane, which provides an experimental syntax for writing generator functions. The crate currently only works on the nightly Rust compiler, as it depends on unstable features like generators, generator_trait, and try_trait. The post includes a code example demonstrating a fizz_buzz generator that yields strings using the #[propane::generator] attribute.
AI 摘要The article describes how the open-source Plywood C++ framework automatically detects text file formats, addressing the inherent ambiguity of encodings like UTF-8, UTF-16 (with or without BOM), and Windows-1252, along with varying line endings. Plywood examines the first 4KB of a file, checks for valid UTF-8 decoding, and scores alternative encodings using heuristics based on whitespace, ASCII characters, and decoding errors. The author benchmarks this approach against a 50-file test suite, noting that editors like Notepad++, Sublime Text, VS Code, and Windows Notepad achieve comparable detection rates, and invites contributions to improve support for formats like Shift JIS on GitHub.
AI 摘要The article explains how to introspect a browser's CSS OM to obtain a complete, always up-to-date list of CSS properties, shorthands, and their longhands, instead of maintaining a hand-written data structure that quickly goes stale. It shows how to get all properties cross-browser (handling Firefox's CSS2Properties quirk via the prototype chain) and how to derive a shorthand's longhands by setting it on an element's inline style and spreading element.style, noting the inconsistent behavior of the 'all' property.