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

Malmö, Sweden
Anyone has a good workflow of having email templates in their codebase whilst having a decent developer experience when making them and being able to create them on the fly with variables etc? Is react-email good? mjml? [...]?
34
2
82
46,461
Alex / KATT 🐱 retweeted
My Vite Conf talk, where I introduced `server$` functions, RPC dataloaders/actions, and Island Routing(Solid Server Components) is now posted. It covers library vs framework and of course plenty of @vite_js love❤️. One of my favorite talks I gave last year. I highly recommended.
🌊 Join @RyanCarniato, to learn about SolidStart, the starter for @solid_js. This talk looks at what motivated its creation and how @vite_js was critical in its inception and has been instrumental in evolving how we approach developing for the future. 💙 youtu.be/G5vwaoXck_g
2
16
119
41,331
Alex / KATT 🐱 retweeted
💥 The video from our @GraphQL or @trpcio event in London is out! beta.guild.host/presentation… @alexdotjs & @_philpl cover _a lot_ from general usage to real-time data 🤯 Thanks to @prisma & @Foolproof_UX for making it happen and to everyone that attended for making it awesome ❤️
1
7
48
6,806
Alex / KATT 🐱 retweeted
👀
3
41
8,051
😎Interested in exploring tRPC? @alexdotjs, a fully-stacked #TypeScript developer from Sweden and the creator of tRPC6, will show you how to move fast without breaking anything. Get first-hand information at the Node Congress, April 14 & 17. #JavaScript #backend #NodeJS
1
2
11
4,828
Alex / KATT 🐱 retweeted
The Case Against Return Types, new video up now youtu.be/I6V2FkW1ozQ
52
26
371
139,597
Would you be interested in expressing your tRPC routers as `class`es where every method isn't necessarily a procedure?
20
2
72
35,142
Exploration using TSyringe dependency injection
5
6
4,471
To be clear - I'm not proposing to change anything we do, this could just be an alternative way of doing things
5
7
2,461
Alex / KATT 🐱 retweeted
Do you know about ReturnType in TypeScript? What about Awaited or Parameters? Utility types can unlock a lot of power to keep your code type safe, even when your npm packages aren't perfect More magic you can do with utility types in my latest article: builder.io/blog/utility-type…
36
319
2,164
268,427
I declare types, but almost only for primitive return types (boolean, string, number, etc) I wouldn't go as far as calling declared types "tech debt" though.. this is subjective. In TS esp I find declaring more unsafe than inferring as you might leak extra stuff accidentally
5
2
32
12,722
Why are we all talking about return types today? The thing is: return types work best when they are unnecessary (like :string on a simple function) but are super annoying as soon as you might want them, e.g. when a lib returns advanced types. So what's the point?
1
1
2,829
I'd add simple arrays of primitive types here (like string[]) too
so i just had a little issue at work i am writing some csv crap and i accidentally changed the shape of my variable (string[] -> number[][]) (forgot join(",")) i type my return, error within function, ya! i then thought, what if i dont? no errors writes incorrect csv
1,529
How to shoot yourself in the foot. 🤦‍♂️ Does this mean Twitter walls will disappear? I guess all that traffic has no value to Twitter
Starting February 9, we will no longer support free access to the Twitter API, both v2 and v1.1. A paid basic tier will be available instead 🧵
10
1
65
13,779
Thanks @calcom, @Flightcontrolhq, & all other sponsors that enable us to distribute some gratitude within the OSS community 🙏
woke up to a github sponsorship from @alexdotjs. thanks for the support!
1
34
3,400