编程 · 最新文章

今日新增 29 篇 · 共 2,700 篇 · 来自 79 个博客

Tailwind CSS Blog·

Just-In-Time: The Next Generation of Tailwind CSS

One of the hardest constraints we've had to deal with as we've improved Tailwind CSS over the years is the generated file size in development. Today I'm super excited to share a new project that makes this constraint a thing of the past: a

Preshing on Programming··Jeff Preshing

How C++ Resolves a Function Call

AI 摘要The article explains the hidden compile-time algorithm that every C++ compiler uses to resolve a function call, which the author was motivated to understand after repeatedly encountering confusing errors about 'overloads with similar conversions.' It walks through the three main phases of the process—name lookup (including argument-dependent lookup), template argument deduction and substitution (introducing SFINAE), and overload resolution—using a concrete example to show how candidates are found and narrowed down. The author argues that understanding how these steps fit together is especially valuable for programmers developing libraries who combine multiple C++ features.

Tailwind CSS Blog·

Welcoming James McDonald to Tailwind Labs

AI 摘要James McDonald is joining Tailwind Labs as a full-time team member. Years ago, Steve had shared James's Dribbble profile with the author, describing it as some of his favorite work ever discovered. Now the team is thrilled to welcome James aboard.

Josh W. Comeau··Josh W. Comeau

The Importance of Learning CSS

I know so many super-talented developers who share the same achilles heel: CSS. Instead of trying to “outrun” CSS, this article explores why leaning in and going deeper can be a tremendous boon for your development life and your career. Kee

Svelte Blog·

What’s new in Svelte: March 2021

AI 摘要This March 2021 Svelte news roundup announces the Open Call for Speakers for Svelte Summit Spring 2021 (deadline March 14) and details recent Svelte core releases (3.31.2–3.34.0), including reworked SSR store handling, multiple action instances per element, a new foreign namespace for alternative compile targets, and a cssHash compiler option. It also covers improvements to the language tools and ecosystem packages like eslint-plugin-svelte3, prettier-plugin-svelte, and Sapper, plus a community showcase of apps, libraries, components, demos, and learning resources built with Svelte.

Josh W. Comeau··Josh W. Comeau

What The Heck, z-index??

AI 摘要This article explains why the CSS z-index property sometimes fails to bring elements to the front, even when set to very high values. It explores the concept of stacking contexts, showing how they can interfere with z-index behavior, and demonstrates how developers can use this mechanism to their advantage.

brandur.org··Brandur Leach

Minimally Invasive (and More Accurate) Analytics: GoAccess and Athena/SQL

AI 摘要The author discovered that web analytics tools like Google Analytics and Goatcounter are widely blocked by adblockers, causing severe undercounting—during a Hacker News traffic spike, actual traffic was roughly 2.5x higher than analytics reported, suggesting about 60% of readers use adblockers. As a more accurate and privacy-friendly alternative, the author describes analyzing raw CloudFront access logs using GoAccess for terminal/HTML visualization and AWS Athena for running ad-hoc SQL queries at low cost.

Lea Verou··Lea Verou

Mass function overloading: why and how?

AI 摘要The article explains why the Bliss JavaScript library embraces mass function overloading, letting its helper functions accept both single elements/values and arrays or object literals for aggregate operations—a pattern inspired by jQuery and aligned with the robustness principle of being liberal in what you accept. It then explores several approaches for implementing this overloading in the modular ESM rewrite of Bliss v2, where functions live in separate modules and cannot be wrapped en masse as in v1. The author concludes that declaring each function plainly and then wrapping it with overload() at export time is the most maintainable option, despite the small amount of boilerplate it adds to every module.

Josh W. Comeau··Josh W. Comeau

An Interactive Guide to CSS Transitions

This comprehensive guide shows how to use CSS transitions! A back-to-basics look at the fundamental building blocks we need to create microinteractions and other animations. Keep reading.