πŸ‘‹ I'm Alex & I tweet about web dev stuff Creator of @trpcio, work @square, scout @a16z

MalmΓΆ, Sweden
I've always hated the "there's a new version - plz click [here] to reload"-style prompts
2
23
Is this a kosher way of detecting version changes in @nextjs and forcing a reload on the next navigation change? The goal is to turn any `<Link>` into an `<a>` if we have a new build. Full gist: gist.github.com/KATT/62f0020…
9
5
155
Agenda is still open for feedback btw, anything you'd like in there? πŸ‘€
1
6
You in London Jan 5th? Come hang & have some free beers and pizza! (It'll be streamed as well) πŸ‘‰ guild.host/e/trpcgql
What do a lion, a cat, and a kitten have in common? 🦁🐱🐈 Myself, @alexdotjs, & @_philpl will be discussing "@trpcio or @GraphQL" in London & online in January! Sign up here πŸ‘‰πŸ½ guild.host/e/trpcgql Thanks to @prisma for sponsoring the event and @arismarko for the venue ❀️
4
2
22
Alex / KATT 🐱 retweeted
...and that makes it 17k 🌟 Exciting stuff coming up, stay tuned!
🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟 that's 16 stars πŸ‘† each of those represents a thousand people who've now starred @trpcio on GitHub, that is pretty damn crazy
1
2
58
Hey TS nerds, I found some surprising behaviour, I'd expect this to be either: a) error as `maybeUser` below is nullable and the cast is bad b) magically make `maybeUser` to `null | (User & { thing?: true })` what should one do here to cast correctly? typescriptlang.org/play?noIm…
6
3
33
Alex / KATT 🐱 retweeted
Zod 3.20 is here! This is a big one. 🟒 `z.coerce` 🟒 `.pipe()` 🟒 `.catch()` 🟒 `z.symbol()` 🟒 `z.number().finite()` 🟒 `z.string().datetime()` github.com/colinhacks/zod/re…
16
116
647
I was supposed to take a flight to California today but b/c of a little herniated disc in my back I'm unable to walk much atm & I had to cancel πŸ‘΄ Very keen to go in Q1 2023, hmu if you know of any events in SF/LA/etc that'd like to hear about @trpcio πŸ€™
13
1
63
Hello, dear followers. I’m officially looking for a job starting in 2023. DMs open. Act now before your competitor snatches up this talent! πŸ˜‚ linkedin.com/in/erikjrasmuss…
5
73
148
Alex / KATT 🐱 retweeted
πŸŽ‰ SO excited to announce what I've been working on for the past few months... βœ¨πŸ§™β€β™‚οΈ Total TypeScript πŸ§™β€β™‚οΈβœ¨ It's a comprehensive, interactive video course to turn you into a TypeScript wizard. Prerelease available now! ⬇️⬇️⬇️
37
123
945
Alex / KATT 🐱 retweeted
HEY ITS ME talking about @trpcio and stuff
Chris Bautista, Senior Software Engineer at Netflix, also known as Trash Dev (@trashh_dev) online and to his Twitch community, joins discuss his recent Next.js Conf talk, β€œMaking Typesafe APIs easy with tRPC.” Apple: buff.ly/3Uv4lKQ Spotify: buff.ly/3ur4iVV
16
7
94
Alex / KATT 🐱 retweeted
THIS CHANGES EVERYTHING youtu.be/uu57PhChTOE
8
6
82
Alex / KATT 🐱 retweeted
Switching from Express to @trpcio in our Lambda based API has saved us a ton of boilerplate code (almost 3,000 lines of code!) while adding full type safety to our application. From the front end (@vuejs v3) all the way to the DB (@prisma) we now have complete type coverage!
3
6
88
With tRPC + Next.js 13, you'll have your components render on the edge but be able to have the "server logic" in a traditional lambda close to the DB. Unless you have a globally distributed DB, I at least *think* this is the best approach?
Shower-thought: if you have any query waterfalls in your app, serving it on "the edge" will actually make it *slower* compared to hosting your app close to your data. I think I just killed my own hype for serving dynamic sites on the edge. Am I thinking about it wrong?
8
5
94
tRPC is not the death of GraphQL, it just means I reach for it way less :)
21