Andrew Roberts

Andrew Roberts

@ajr.sh

software engineer • (re)posts about web, systems, cloud, maps, games, iOS

131 followers530 following183 posts

Andrew Roberts reposted

📢 Introducing the React Aria Sheet component! ‣ Native swipe gestures powered by CSS scroll snapping ‣ Gesture-synced animations ‣ Snap points ‣ Stacking ‣ Elastic over-scroll ‣ Keyboard aware Wrote a blog post about how it works! react-aria.adobe.com/blog/sheet

Andrew Roberts reposted

Andrew Roberts reposted

I'm doing something absolutely ridiculous. 😂 I created a `RasterizedSvg` component that will render an SVG as though it was a raster image, letting us see the pixels if we scale it up. Left: original SVG Right: rasterized SVG

Andrew Roberts reposted

Lightweight AI planning (avoiding a "plan" or "spec" which easily gets out of date): Start PRs with an empty commit + include all of the planned tasks in PR title and description (using checkboxes) Then keep this up to date and check off the points as you / AI implement github.com/karlhorky/do...

Andrew Roberts reposted

You can embed Apple Maps on your website 👀 MapKit JS has been around for a while, but v6 made it easier to use: npm install, native promises, addEventListener. No custom setup or no surprises. Just install and build. Here's a demo: webkit.org/demos/yosemite

Andrew Roberts reposted

VoidZero is joining Cloudflare. Our mission stays the same: to make JavaScript developers more productive than ever before. Vite, Vitest, Rolldown, Oxc, and Vite+ remain MIT-licensed. Evan and the VoidZero team will continue leading them.

Andrew Roberts reposted

🚀 New article on gap decorations (coming soon) in CSS. I have a small obsession with clean layout lines, and this is the first time it feels easy to draw them without polluting the markup. Goes through the new properties, a playground, and some experiments... 👾 utilitybend.com/blog/css-is-...

utilitybend.comCSS is filling the gaps with rules. A way to style gaps in grid and flex. | utilitybendA practical walkthrough of CSS gap decorations: column-rule, row-rule, rule-break, rule-inset, rule-visibility-items, repeat(), and animation.

Andrew Roberts reposted

💡 Use "using" for Vitest/Jest mocks/spys It's really nice to simplify You don't need manual mockReset / global afterEach cleanups anymore

Rob Palmer@robpalmer.bsky.social

ECMAScript excitement 😉 Congrats to @chronicles.org on meeting the conditions for Explicit Resource Management to be Stage 4 at @tc39.es today 🎉 It introduces `using` declarations and the Symbol.dispose protocol to deterministically and ergonomically release resources 👍 github.com/tc39/proposa...

Andrew Roberts reposted

most of these github actions driven breaches are because of pull_request_target. here's some tips of what to look for when reviewing your own workflows. worth noting - it is safe, and necessary, when used correctly 🧵

Andrew Roberts reposted

Wobble Buttons made with HTML in Canvas I can't stop clicking these

Wes Bos@wesbos.com

HTML in Canvas API is NUTS

Andrew Roberts reposted

Real DOM content in a canvas: fully searchable, translatable, inspectable. You can have forms, add WebGL effects & much more. Imagine if this was a customizable select 🤯 A little WIP exploration (not finished) for a very exciting API. github.com/WICG/html-in...

Andrew Roberts reposted

16 developers. 15 minutes. Single elimination. Round 1 begins March 6. Who do you think is taking it all? Fill out your bracket now at madcss.com

Andrew Roberts reposted

also it is so much EASIER to make comprehensive tests now if you know what you’re doing. in my three vibecoded projects i made the kind of tests i’d never bother to do before. and they saved my ass many times you do need to steer it to test the right things which requires some experience and taste

Simon Willison@simonwillison.net

I see a lot of complaints about untested AI slop in pull requests. Submitting those is a dereliction of duty as a software engineer: Your job is to deliver code you have proven to work simonwillison.net/2025/Dec/18/...

hugely excited for this- finally!!!

Devon Govett@devongovett.me

Introducing the new React Aria docs! 🎉 All-new content and search experience. Interactive CSS and Tailwind examples to get you started quickly – just install with shadcn. New guides and full example apps. MCP server and AI integrations. Check it out! react-aria.adobe.com

Andrew Roberts reposted

I've heard folks express concern about React Router since the Remix 3 announcement Some variation of "is it on hold?"/"is it a secondary focus?"/"will it stop getting features?" etc No, No, and No 😀 To back it up, I thought I'd put together a little "React Router Wrapped" for 2025 🎄

Andrew Roberts reposted

Andrew Roberts reposted

Andrew Roberts reposted

Geoffrey Litt just proposed a new analogy for working with AI coding tools that I really like: you are the surgeon, staying in command and doing the most challenging work - the AI tools are your support team and surgical assistants simonwillison.net/2025/Oct/24/...

simonwillison.netA quote from Geoffrey LittA lot of people say AI will make us all "managers" or "editors"...but I think this is a dangerously incomplete view! Personally, I'm trying to code like a surgeon. A …

Andrew Roberts reposted

Don't [...spread] or .split() your strings! Use Intl.Segmenter API. Available in every JS runtime

Andrew Roberts reposted

Please stop setting `width: 100vw` on the `body`. It's unnecessary. By default, the `body` stretches horizontally as much as necessary. It's problematic. Setting `width: 100vw` on it can cause overflow even if you remove the default `margin`... because the page may have a scrollbar. #CSS

Andrew Roberts reposted

cursor tracking on 3D CSS surfaces 👨‍🍳 inverse projection mappin' to calculate proximity in 3D space and apply an eased 0-1 value 🤙 the key: measuring the 4 corners, check the reveal 👇 (ideal for 2D canvas w/ 3D transforms)

looking forward to pt. 2 of this series, fun one! Smashing Magazine's quality is consistently top-notch

Friday Front-End@fridayfrontend.com

Ambient Animations In Web Design: "Creating motion can be tricky. Too much and it’s distracting. Too little and a design feels flat. Ambient animations are the middle ground — subtle, slow-moving details that add atmosphere without stealing the show." #CSS www.smashingmagazine.com/2025/09/ambi...

Andrew Roberts reposted

Andrew Roberts reposted

Recreated the Apple Photos UI with React Aria in just ~200 lines! Complete with virtualized scrolling, view transitions, adjustable waterfall layout, folder tree, search, multi-selection, and accessible drag and drop. Just one of the demos I'm planning for the new docs. 🙂