sigh.dev - Scott Cooper

Overview

Scott Cooper writes about TypeScript, React, open source, San Francisco, and the weird edges of the web.

News

Blog 3 months ago
Making React Testing Library Tests 43% Faster
React Testing Library's getByRole is the correct way to test a form. It checks that fields have the roles and accessible names a user relies on, so a passing test tells me the form is at least minimally accessible and labeled correctly. That takes more wo
Read more
Report
Blog 8 months ago
Ending my Angular projects
H: S: % B: % R: G: B: #: I am retiring the rest of my Angular libraries. I have already marked many of them as archived or deprecated, but this is the last wave. The issues pile in and I have no reason to maintain them anymore. What...
Read more
Report
Blog 10 months ago
You can just port things to Cloudflare Workers
This January I decided to double down on using up my free ai credits by building a few projects on Cloudflare Workers. I've always really liked the idea of this platform that has cheap/free resources, but every time I build larger things on it I run into
Read more
Report
Blog 11 months ago
I'm addicted to free AI credits
You might be too late to enjoy the era of $5 Ubers in SF, but you can still get a ride for free with AI. I'm absolutely hooked on using any available free AI models. Cursor will randomly announce that a new model is free for a week or whatever and I'm fuc
Read more
Report
Blog 12 months ago
How I Use Hono and Tanstack Start
I've never liked using any of the fullstack web frameworks for apis. They lack clear middleware and routing, they never quite support openapi and the types are often more difficult to work with. I see lots of people use tRPC or oRPC to try to smooth out t
Read more
Report
Blog 1 year ago
My Favorite NPM Command
Let's talk about my favorite npm command, npm repo . Open package repository page in the browser - npm docs This command is dead simple. Open the repository page for the given package in the browser. If you omit the package name, it will look at the local
Read more
Report
Blog 1 year ago
@ctrl/tinycolor Supply Chain Attack Post-mortem
TL;DR A malicious GitHub Actions workflow was pushed to a shared repo and exfiltrated a npm token with broad publish rights. The attacker then used that token to publish malicious versions of 20 packages, including @ctrl/tinycolor . My GitHub account, the
Read more
Report
Blog 1 year ago
Starting a blog
Who? I work at Sentry.io where I add my cursor generated slop (more on that soon) to their React SPA. Outside of work, I've made xmplaylist.com , a music discovery and song tracking app for Sirius XM which runs on Tanstack Start + hono, my current favorit
Read more
Report
Blog 1 year ago
Test Note
I've not figured out how much I'll use notes. They have their own RSS feed at /notes/rss.xml separate from the blog.
Read more
Report