Archive: 2025-04 | Page 17
Archive: April 2025
-
Apr 10, 2025
A single large formatting commit is enough to make git blame useless for an entire file, since every line suddenly points to that one commit instead of the actual functional change. The .git-blame-ignore-revs file solves exactly this problem without touching the commit history itself.
-
Apr 10, 2025
A single fallback position rarely covers every case in CSS Anchor Positioning once an anchor sits close to a screen edge. With position-try-fallbacks you can define a whole chain of alternative positions the browser tries in order until one fits, with no JavaScript and no resize or scroll listener at all.
-
Apr 10, 2025
Jumbo Frames raise the maximum Ethernet frame size from 1500 to up to 9000 bytes, lowering the percentage of header overhead per transferred megabyte. For the internal connection between a web server and a MySQL database, or for backup and replication traffic, this can noticeably save CPU cycles, provided the MTU is set consistently on every device along the path.
-
Apr 10, 2025
The MySQL optimizer decides on a query's execution plan based on estimated row counts, and for a long time that estimate relied almost entirely on coarse index statistics like cardinality values. For evenly distributed columns that works fine, but for skewed distributions with a few very frequent and many rare values, the same estimation method regularly produces wrong plans. Since MySQL 8, histograms can be maintained on individual columns, giving the optimizer a much finer grained data foundation. This article covers when classic estimates fail, how histograms are used in practice, and when they actually make a measurable difference.
-
Apr 10, 2025
Tailwind's JIT engine generates only the utility classes that actually appear in your source code, yet misconfigured content paths regularly cause CSS bundles to bloat unnecessarily or styles to vanish in production, because the scanner simply overlooks templates, modules, or dynamically assembled class names.
-
Apr 10, 2025
Claude models can be integrated into an application through three different paths: the direct Anthropic API, Amazon Bedrock, or Google Vertex AI. All three provide access to the same models but differ in billing, data residency, latency, and integration with existing cloud infrastructure, which makes the choice an architectural decision rather than a purely price-driven one.
-
Apr 10, 2025
Since the mandatory switch to Manifest V3, the architecture of browser extensions has changed fundamentally: persistent background pages are a thing of the past, replaced by a service worker that can be terminated and restarted at any time. Anyone building their own extension needs to think through this lifecycle model from the beginning rather than patching it in later. This article shows how Claude helps with manifest structure, permissions, communication between components, and preparing for store reviews.
-
Apr 10, 2025
Shell-Skripte ohne Tests sind eine Blackbox in der Automatisierung. Das Bash Automated Testing System (BATS) bringt strukturierte Unit-Tests, Fixtures und Mocking in die Shell-Welt – und lässt sich nahtlos in GitHub Actions, GitLab CI und Jenkins integrieren, ohne externe Laufzeitabhängigkeiten.
-
Apr 9, 2025
A homegrown CLI tool only truly feels finished once the Tab key suggests subcommands, options and arguments, just like git or docker do. The Bash builtin complete together with compgen makes that possible without any external dependencies, from a simple word list up to suggestions loaded dynamically from a database or an API.
-
Apr 9, 2025
Bringing TypeScript in React to the right level means more than typing props with interfaces. The satisfies operator, Template Literal Types, generics in components and discriminated unions enable props APIs that are impossible to misuse at runtime, because TypeScript flags every error while you write the code.