👋 I'm Alex & I tweet about web dev stuff Creator of @trpcio, work @square, scout @a16z

Malmö, Sweden
I kinda wanna go to @nextjs conf, who's gonna be there? 👀
12
21
5,158
hey @ryanmagoon, can PayPal sponsor my trip?
3
9
5,757
Alex / KATT 🐱 retweeted
Idk how to describe it but this is what using tRPC for the first time felt like
This is probably how the first fast food restaurant was received by the public
24
12
416
69,306
Alex / KATT 🐱 retweeted
If you use it, @trpcio is going to be heavenly with @Tan_Stack Start. Just sayin'.
22
10
405
31,988
Alex / KATT 🐱 retweeted
i will truly never understand management as skill tree branch off of high level IC work
Replying to @Triode_in_situ
i dont understand the manager thing. i'm good at writing code, i dont understand how you hit the peak of being good at coding and are suddenly qualified and encouraged to take a foray into babysitting.
39
3
226
48,847
lol, TIL that `'hello'.substr(-2) !== 'hello'.substring(-2)` "Negative lengths in substr() are treated as zero, while substring() will swap the two indexes if end is less than start."
2
10
1,851
for reference, you should do `x.slice(-2)`
3
1,099
🙋‍♂️ Hey monorepo nerds @tothemoonrepo has a way to sync typescript project references automatically (moonrepo.dev/docs/config/too…) - is there an equivalent, or someone who made a script, for this @turborepo? Seems to me like the way to go for bigger projects innit?
4
28
3,948
lol, having seen this tweet a few weeks ago just saved me hours this code has a bug in some cases, can you spot it?
Fuck JS Why do you need to reorder my string number keys 😭 Looks like it's impossible to have numbers as keys in the order I want It always sorts object keys ASC, even if it's a string
3
1
11
5,239
Retool.com just landed as a gold sponsor of tRPC🥇 Retool is a great tool to build internal tools (& they have an RPC-framework too which is very nice to use!) Excited to have this product that I've happily used for years as a sponsor
2
3
70
6,845
Alex / KATT 🐱 retweeted
Anyone tried this out yet? Wdyt? 👀
Hey, in the last couple of weeks we've (amongst other things) added: - support for SSE in subscriptions (example at sse.trpc.io) - returning async generators in queries/mutations for streaming responses from LLMs etc
2
1
18
6,316
Come at me
Replying to @JLarky @biomejs
return early if you can I consider `else` a code smell
19
62
8,212
do as I say, not as I do
8
1,152
I'm so glad this hack is obsolete in TypeScript 5.5 🎉
TypeScript tip 💡 Use `.flatMap()` to filter items in a type-safe manner. Try it 👉 typescriptlang.org/play?targ…
4
8
114
9,047
The sse.trpc.io example is hosted on @Railway btw, works amazingly (and is so cheap for side projects that we haven't even tried to hustle some free credits)
Hey, in the last couple of weeks we've (amongst other things) added: - support for SSE in subscriptions (example at sse.trpc.io) - returning async generators in queries/mutations for streaming responses from LLMs etc
4
21
3,051
Hey, in the last couple of weeks we've (amongst other things) added: - support for SSE in subscriptions (example at sse.trpc.io) - returning async generators in queries/mutations for streaming responses from LLMs etc
6
8
100
18,535
The nicest things to me that SSE has over websockets - easier to setup - automatic resumability built into browsers when they get disconnected so you don't loose any messages (maybe we'll back-port that part to our ws adapters too)
2
16
1,487