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

MalmΓΆ, Sweden
We're close to 500k weekly downloads on trpc, pretty wild!
7
5
166
18,982
Alex / KATT 🐱 retweeted
React team: β€œHey we cooked up a way to directly invoke server code from the front end. Basically our own RPC. Now you have less need to cobble together http endpoints for every little thing” The internet: β€œhurr durr I guess we’re back to asp”
33
31
586
87,129
One of my idols speaking the truth
Replying to @kenwheeler
Frontend eng is more difficult and complicated than backend most of the time. Most backend eng's heads would explode if they had to deal with a modern, complicated frontend.
4
10
3,824
Building UI is harder than building backend
1
6
1,302
I'm also very excited about the fact that the line between "frontend" and "backend" is becoming blurred again The job title "Webmaster" is back baby
1
8
791
So incredibly happy to see this pic of these amazing human beings 🀩
finally got to meet these smart dudes @trpcio gang
7
2
110
18,348
"react is like php now" is not an insult. we should aspire to get to laravel levels and we're far from it
34
21
500
69,554
Alex / KATT 🐱 retweeted
For those who can't see beyond an illustrative slide...
65
64
826
199,811
"React is just like PHP all over again"
40
7,847
Alex / KATT 🐱 retweeted
A proposal: an EventFor type helper for helping with React event types. const onClick = (e: EventFor<"div", "onClick">) => { // e is properly typed! } You get autocomplete for div, and for the events which div can receive. Here's the code: typescriptlang.org/play?#cod…
22
39
500
60,868
Alex / KATT 🐱 retweeted
Unpopular opinion: Don't use http verbs PUT, PATCH, DELETE. Just use POST for everything. Reasons: - <form> doesn't support the others. Frameworks that allow it do so through hacks. - URLs are free, you don't gain anything by overloading them. - Purity < practicality
315
68
1,127
1,318,128
`iife(() => { return '...' })` 1 line utility to not count brackets brackets when making an IIFE
7
2
86
31,519
the name `iife()` is a bit cryptic. maybe call it `run` or `$do` or something
3
1,107
Alex / KATT 🐱 retweeted
πŸ”₯ TypeScript Tip πŸ”₯ Here's how to create a polymorphic button or link component. Step 1: Rethink your life choices. Maybe working the land is more your thing. Step 2: Do this.
24
79
798
117,453
This is pretty appealing tbh Many of DHH's opinions are reasonable, even when I disagree with them, & I appreciate him being vocal about ways of doing things that are scary to us TS/JS folks
"How we built HEY wasn't feasible prior to 2020, before import maps. So if your mental model of the web is soaked in the possibilities of 2010-2020, I understand your skepticism, but please don't let it restrict your ability to appreciate progress." world.hey.com/dhh/we-tried-t…
7
4
70
36,496
... & I'm now in the "why isn't everything a stream!?"-phase πŸ˜…
I think I finally really get generator functions
8
1
45
16,432
Can I ship untranspiled stuff to npm yet if I target people using it in browsers but likely have their own bundler from the framework they're using? (Using async generators) ((Pipe dream: imagine publishing untranspiled typescript to npm and being done with your worries))
4
31
6,811
I usually put a bunch of πŸ™€πŸ™€πŸ™€πŸ™€πŸ™€πŸ™€πŸ™€πŸ™€πŸ™€πŸ™€πŸ™€πŸ™€ emojis around it, they are easier to spot
this is the way.
2
2
25
4,587
Alex / KATT 🐱 retweeted
Sentry is giving $500k+ to open source it relies on this year, >2x last year. We didn’t start with a high $ amount - and honestly this is still small potatoes - so what’s stopping your company from doing it?
27
102
768
231,416