Daniel Brain·May 27TypeScript’s number type is a lie5000 is 5000 is 5000.A response icon2A response icon2
Daniel Brain·Jun 10, 2025A slightly better useStateDavid Khourshid recently gave an interesting talk about avoiding useState when you don’t need it:
Daniel Brain·Aug 16, 2024The shortest, strangest engineering interview I’ve ever done.Last Friday I posted a job description for a role I’m hiring for, for my early-stage YC startup, OneText. I’ve had a lot of positive…A response icon109A response icon109
Daniel Brain·Dec 15, 2022Nine terrible ways to use TypeScript enums, and one good way.TypeScript enums get a lot of hate. And not for an unjustified reason: they have so many potential foot-guns.A response icon18A response icon18
Daniel Brain·Dec 2, 2022The only kind of test I writeThere is a near constant background-level conversation in the engineering world about which kinds of tests are better; unit tests…A response icon1A response icon1
Daniel Brain·Oct 19, 2022I’m interviewing a little differently this time round.While I was at PayPal, I did a metric ton of interviews, and I heard interview feedback from a bunch of different colleagues and friends.A response icon7A response icon7
Daniel Brain·Oct 8, 2022It’s not actually supposed to be difficult.Growing up I found myself instilled with the strong impression that things were supposed to be difficult, and that when I was older I would…
Daniel Brain·Sep 12, 2022DTC brands have a huge blind spot: vaultingSince co-founding OneText earlier this year, I’ve been personally working with a metric ton of DTC and eCommerce brands.
Daniel Brain·Aug 25, 2022Subscriptions are out, refills are in.Everything these days is a subscription. And honestly, on reflection, subscriptions are complete horseshit.A response icon12A response icon12
Daniel Brain·Aug 5, 2022You don’t know jack about SMSI mean, how hard can it be? Aim Twilio at a phone number and turn it on.A response icon1A response icon1