Latest articles

424 new today · 7,447 articles · from 241 blogs

Lea Verou··Lea Verou

JS private class fields considered harmful

AI summaryThe author, a JavaScript library author, explains why she has decided to stop using private class fields: instances of classes with private fields cannot be wrapped in Proxies, which breaks frameworks like Vue 3 and Mavo that rely on proxies for their reactivity systems. Since proxy-ability has no workaround while private fields do (private-by-convention), she considers the tradeoff not worth it and is refactoring private fields out of her libraries like Color.js, though she may still use them selectively, such as in web components.

Mr. Money Mustache··Mr. Money Mustache

Frugal Man Buys $52,000 Car – Why??

AI summaryFrugal financial blogger Mr. Money Mustache explains his self-mocking decision to buy a $52,000 Tesla Model Y, replacing a $4,500 Honda van he drove for twelve years, arguing that wealthy savers should enjoy their money while still alive. He proposes three strategies to overcome excessive frugality: the Minimum Spending Budget, the Dedicated Money Wasting Account, and the Splurge Accountability Buddy, using the Tesla as the first step in his experiment to spend more on life experiences.

Scott Hanselman··Scott Hanselman

GitHub Copilot for CLI for PowerShell

AI summaryGitHub Next's Copilot for CLI offers shell commands (??, git?, and gh?) that translate natural language into command-line instructions, but they are designed primarily for bash. The author discovered these commands are just routers to an underlying github-copilot-cli executable and wrote PowerShell function aliases that inject 'use powershell to' into the prompt so the tool works with PowerShell instead. He shares his alias code and hopes the Copilot CLI team will add official PowerShell support.

Josh W. Comeau··Josh W. Comeau

The “const” Deception

AI summaryThis tutorial explores an apparent paradox in JavaScript: the 'const' keyword creates constants, yet objects and arrays declared with it can still be edited. The article explains that resolving this confusion requires understanding the crucial distinction between 'assignment' and 'mutation' in JavaScript.

Ben Kuhn··Ben Kuhn

Some mistakes I made as a new manager

AI summaryThe author, a manager at Anthropic, reflects on the common mistakes they made while transitioning to management, including struggling with the loss of fast feedback loops, trying to stay on the coding critical path, managing at the wrong level of involvement, procrastinating on difficult conversations, indefinitely deferring long-term maintenance work, and worrying about coworkers' opinions instead of simply asking them. They share the strategies that helped, such as seeking feedback through granular questions, calibrating support to each person's task-relevant maturity, scheduling time to confront uncomfortable issues, maintaining slack in their workload, and directly checking in with people. The post is adapted from a management roundtable and aims to help other new managers avoid similar pitfalls.

Marc Brooker·

The Four Hobbies, and Apparent Expertise

AI summaryThe author argues that every hobby is really four hobbies, defined by two axes: doing versus talking, and the activity itself versus the gear ('kit'), and that communities function better when people consciously pick the quadrant they actually want to join. He extends this insight to professional life, noting that true expertise tends to come from practice, while visibility—forum posting, conference talks, optimized tooling—is often negatively correlated with it, making such signals weak proxies for competence. Still, he concludes that developing strong communication skills alongside deep expertise is valuable, as stepping out of the 'pure practitioner' quadrant increases one's impact and recognition.

Raph Levien·

Simplifying Bézier paths

AI summaryThe article describes refinements to curve-fitting techniques for approximating arbitrary curves with near-optimal Bézier paths, implemented in the Rust library kurbo, built around a new ParamCurveFit trait and efficient error evaluation using Green's theorem area/moment prefix sums. It covers error metrics, favoring Fréchet distance approximated via Tiller-Hanson ray casting, with a slower but more robust arc-length approach used for 'spicy' high-curvature regions, and goes beyond simple adaptive subdivision by optimizing subdivision point placement to minimize segment count. Finally, it addresses an unexpected problem where aggressively Fréchet-optimized curves develop bumps, solved by penalizing extreme control-point configurations to keep the output smooth at a cost of only one additional segment.