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

Malmö, Sweden
🥹
Replying to @alexdotjs
@alexdotjs deserves major props for how he treats contributors and other project members. Not many other maintainers understand that the other people behind the project are just as important as the project itself and truly care about them.
16
5,336
💯 It's a bit ridiculous that I've willingly reduced time, and a big chunk of my income, at my "real job" to hack on open-source stuff for free* (* I'm very grateful to all my sponsors who also enable me to distribute some to other people)
I love maintaining open-source software and providing support for anyone who needs help using it. It's admittedly a bit ridiculous that we do it for free, but I love it anyway.
3
1
106
59,560
Wow, how wild is it that I can CMD+click a `http://localhost:3000` in the @stackblitz terminal and the link just works!? 🤯
1
2
43
9,410
I know this is a minor thing in the realm how fucking impressive stackblitz is, but it was a very nice delightful surprise
8
806
Example on StackBlitz: stackblitz.com/github/KATT/t…
It can now also convert async iterators to a stream of strings and then we can use them across the network boundary as if they were a local object I'm dizzy 😵 (& the code is a bit of a mess)
5
2,454
It can now also convert async iterators to a stream of strings and then we can use them across the network boundary as if they were a local object I'm dizzy 😵 (& the code is a bit of a mess)
So yeah, I ended up writing a thing that can serialize objects containing promises into a stream of strings github.com/KATT/tupleson/blo…
1
19
6,917
Pure appreciation tweet: the @typescript playground is amazing
4
2
78
10,642
So yeah, I ended up writing a thing that can serialize objects containing promises into a stream of strings github.com/KATT/tupleson/blo…
I think I finally really get generator functions
2
32
16,706
(I have no use for the tupleson-project yet, I'm mainly writing it for fun) here's the meat of the stringification: github.com/KATT/tupleson/blo…
2
1,156
Hard disagree. This is actually fine. Coupling is better than letting the clients stitch together a bunch of APIs in various slow request/response iterations (aka "waterfalls") Use graphql or make a BFF, but avoid stitching APIs together too much on the client
Just audited a codebase with a REST API that returns this: { table1: [] table2: [] main: [] } Don’t couple your API to UI elements.
10
5
180
54,192
I think I finally really get generator functions
5
22
36,716
Does anyone have a quick starter for creating a ts package? I want: - vitest - changesets - ci job that publises to npm - eslint / prettier
6
1
96
23,138
Anyone who could add me to the alpha of v0.dev? 👀👀👀🙏
v0 by Vercel Labs Generate UI with simple text prompts. Copy, paste, ship. Explore the prompt library and join the waitlist today. v0.dev
2
1
36
10,018
If we generated typesafe Swift or Kotlin SDKs automatically for your tRPC API, would you be interested?
15
92
17,055
If you do anything with OSS, `gh pr checkout <<PR number>>` will save you a lot of annoyance
damn i’ve been sleeping on the github cli
9
7
137
30,823
@colinhacks summed it up better than me
gh repo clone <github url> 👉 no need to copy the weird ssh link gh pr checkout <link to PR> 👉 for maintainers, this checks out the forked branch & sets the upstream properly so you can just make changes & git push to the fork gh pr create 👉 interactive CLI for creating PRs
10
1,948
TIL that this is correct syntax and that `finally` runs after the return of the function #junior4lyfe
48
29
667
164,133
* credit to @GuiSim for teaching me and for creating this snippet
1
11
8,701
I'm back, what did I miss?
21
50
11,786
Going on holiday for 2 weeks and logging out of here during that time 👋
5
63
9,305