Open in app

Sign In

Write

Sign In

Daniel Brain
Daniel Brain

2.9K Followers

Home

About

Dec 15, 2022

Nine 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. But — my position is, they still belong in the language rather than out. …

Typescript

5 min read

Typescript

5 min read


Dec 2, 2022

The only kind of test I write

There is a near constant background-level conversation in the engineering world about which kinds of tests are better; unit tests, integration tests, end-to-end tests, and so on. A while back, I decided I was only going to write one kind of test. I’m not really sure it neatly fits into…

Programming

2 min read

Programming

2 min read


Oct 19, 2022

I’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. I’ve made plenty of mistakes, and I’ve seen others make some obvious blunders too. Now I’m building OneText, and I can finally start hiring on…

Coding

3 min read

I’m interviewing a little differently this time round.
I’m interviewing a little differently this time round.
Coding

3 min read


Oct 8, 2022

It’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 need to keep doing really difficult things to be successful in life. In school, you’re not really taught to learn in an incremental way, and…

Technology

5 min read

It’s not actually supposed to be difficult.
It’s not actually supposed to be difficult.
Technology

5 min read


Sep 12, 2022

DTC brands have a huge blind spot: vaulting

Since co-founding OneText earlier this year, I’ve been personally working with a metric ton of DTC and eCommerce brands. It’s been fascinating getting to know these guys. It’s the actual wild west: everyone has a slightly dubious playbook, a ton of hustle, a handful of mentors, and a Shopify store…

Ecommerce

5 min read

DTC brands have a huge blind spot: vaulting
DTC brands have a huge blind spot: vaulting
Ecommerce

5 min read


Aug 25, 2022

Subscriptions are out, refills are in.

Everything these days is a subscription. And honestly, on reflection, subscriptions are complete horseshit. I mean — paying for a monthly service is not a bad thing per se. It makes a decent amount of sense when it’s an actual on-demand service you’re paying to access, like Netflix or Spotify…

Subscription

4 min read

Subscriptions are out, refills are in.
Subscriptions are out, refills are in.
Subscription

4 min read


Aug 5, 2022

You don’t know jack about SMS

I mean, how hard can it be? Aim Twilio at a phone number and turn it on. Hol’ up Yeah, let’s not get ahead of ourselves. A bunch of different brands have started to use SMS to communicate with their customers. …

Ecommerce

9 min read

You don’t know jack about SMS
You don’t know jack about SMS
Ecommerce

9 min read


Sep 19, 2021

The Magic of Serializing Functions

Messaging is finicky. There are many scenarios where it’s necessary to asynchronously send messages between two different layers. For example: Between different threads or processes Between different iframes or windows Between a web page and a web-worker or service-worker Between a client application and a server, via a web-socket Basic Fire-and-Forget Serialized Messages In…

Java Script

8 min read

The Magic of Serializing Functions
The Magic of Serializing Functions
Java Script

8 min read


Jun 21, 2021

Fooled by Certainty

A short counter of Taleb’s Bitcoin analysis. Nassim Nicholas Taleb recently published his latest draft of Bitcoin, Currencies, and Bubbles: Bitcoin, Currencies, and Bubbles This discussion applies quantitative finance methods and economic arguments to cryptocurrencies in general and bitcoin…www.academia.edu This article is not intended to be a complete counter-thesis, nor do I believe that all of Taleb’s arguments are incorrect. …

Bitcoin

9 min read

Fooled by Certainty
Fooled by Certainty
Bitcoin

9 min read


Jun 13, 2021

Bitcoin: cutting through the bullshit

When you create an asset that appreciates in price exponentially for a whole decade, you’re going to have plenty of charlatans, no small amount of bullshit, and swathes of market hysteria, all of which you need to cut through. Bitcoin is no exception. It can be frustrating as a Bitcoin…

Bitcoin

8 min read

Bitcoin: cutting through the bullshit
Bitcoin: cutting through the bullshit
Bitcoin

8 min read

Daniel Brain

Daniel Brain

2.9K Followers

I write code, sometimes my code works. daniel@bluesuncorp.co.uk

Following
  • Jamund Ferguson

    Jamund Ferguson

  • Node.js

    Node.js

  • Li Jiang

    Li Jiang

  • Mark Stuart

    Mark Stuart

  • Josh Greenwell

    Josh Greenwell

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech