Sanity Rescues Dying styled-components: 40% Performance Boost

2025-09-12
Sanity Rescues Dying styled-components: 40% Performance Boost

After the popular CSS-in-JS library styled-components entered maintenance mode, Sanity stepped in to rescue it. They released two forked versions, compatible with React 18 and React 19 respectively. These versions leverage React 18's `useInsertionEffect` hook and React 19's inline styles to dramatically improve performance, achieving up to a 40% speed increase in some cases. The article details the fixes and performance improvements, and provides a phased migration strategy for developers using styled-components, allowing for performance gains before transitioning to alternative CSS solutions.

Read more
Development

AI Now Writes 80% of My Code: A Developer's Perspective

2025-09-03
AI Now Writes 80% of My Code: A Developer's Perspective

An engineer shares their experience integrating AI into production development workflows. From writing every line of code themselves, 80% of initial implementations are now AI-generated, shifting focus to architecture, review, and managing multiple threads. Treating AI like a 'junior developer who doesn't learn' became their mental model for success. The workflow involves using AI to brainstorm solutions, then iterating on the often-flawed initial output. Challenges include AI's inability to retain context across sessions and its tendency to confidently generate incorrect code. Solutions involve creating project-specific context files, integrating AI with various tools, and adjusting code review processes. The author concludes that AI empowers developers to work faster and produce better solutions, not replace them.

Read more
Development