Programming · Latest articles

29 new today · 2,701 articles · from 79 blogs

React Blog··Dan Abramov, Sophie Alpert, Rick Hanlon, Sebastian Markbage, and Andrew Clark

React Canaries: Enabling Incremental Feature Rollout Outside Meta

AI summaryThe React team is introducing a new officially supported Canary release channel that allows the community to adopt individual new features as soon as their design is close to final, before they ship in a stable version. This mirrors how Meta has long used bleeding-edge versions of React internally, and lets curated setups like frameworks decouple feature adoption from the React release schedule.

Svelte Blog·

What’s new in Svelte: May 2023

AI summaryThis May 2023 Svelte newsletter announces JoyOfCode and HuntaByte as new Svelte Ambassadors and notes that SvelteHack winners will be revealed at Svelte Summit on May 6th. It covers recent releases including CSS container query support, bind:innerText, a new a11y warning in Svelte, HMR error reloads and embedded mode in SvelteKit, and a new official ESLint plugin in Language Tools. The post also rounds up a large community showcase of apps built with Svelte, learning resources, and new libraries and tools.

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.

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.

Without Boats·

The Scoped Task trilemma

AI summaryThis post is the first in a series exploring concurrency in Rust and the various APIs that could support it. Unlike the author's previous series on control-flow effects, this series does not advocate for any particular direction for the Rust project, but instead publicly explores the problem space and builds tools for thinking about the issues involved. The author notes they are not yet sure what the 'right' concurrency API is.

Baby Steps·

Fix my blog, please

AI summaryThe author, a programmer, admits their blog has multiple problems, including broken category links, odd mobile and Safari rendering, uncolored Rust code snippets, and an improperly advertised RSS feed, and that it uses an outdated jekyll/makefile setup. Intimidated by HTML, CSS, and GitHub Actions despite being a programmer, they are seeking to hire someone to fix the underlying setup and improve the visual layout. They outline their rough ideas in this post but remain open to suggestions from interested candidates.

Raph Levien·

Moving from Rust to C++

AI summaryThis is a satirical April Fools' post in which the author, a longtime Rust developer, mock-announces that the Linebender GUI projects will migrate from Rust to C++. In a deliberately persuasive style, the piece humorously dismisses memory safety concerns, praises C++'s abundance of build systems and rapid language evolution, and claims the C++ community is friendlier. The post is intended to satirize bad arguments commonly made against Rust, with the author noting afterward that its serious points and tone confused some readers.

Svelte Blog·

What’s new in Svelte: April 2023

AI summaryThis April 2023 Svelte update covers new compiler features in versions 3.56.0 and 3.57.0 (such as the stopImmediatePropagation modifier, svelte:document element, and improved transitions) along with SvelteKit quality-of-life improvements like cookies.getAll, the new submitter parameter, and optional types. It also announces that Dominic Gannaway has joined Vercel to work on Svelte full-time and reminds readers about upcoming events like Svelte Summit Spring and the SvelteHack hackathon. Finally, the post rounds up a large community showcase of apps, learning resources, tools, and ChatGPT-related projects built with Svelte.