Kevin Xu

XState Websocket Machine

November 27, 2020

Websockets are awesome, aren’t they? Bidirectional messaging with low overhead (2 - 14 bytes per message for the frame header) — what’s not…

Trump Golf Course Time Spiral Heat Map

November 11, 2020

Congrats to Joe Biden and Kamala Harris! I can’t be sure what the future holds, but Biden probably won’t run up as high of a golf bill as…

The XState Timer Example in 4 Different User Interfaces

September 20, 2020

“Write once, run everywhere.” A mantra championed by hard-working and lazy engineers alike. XState is a library that’s been on my radar for…

Comments System

July 23, 2020

We’ve got a comments system! Sure, my wife’s the only other person who reads this blog (hi honey!), but I was curious about how I might…

MicroSD Connector Footprint

July 17, 2020

tl;dr: Footprint available here: https://github.com/khxu/microsd_molex_1051620001. Hope I save you some time. Disclaimer: the footprint…

Topological Sort

July 15, 2020

Putting stuff in the right order is hard. For example, say you want to start blogging regularly as a way to document your thought process…

Investment Instruments Terms Glossary

December 29, 2019

It’s a tough road for early stage startups raising funding from investors. The legalese contained in the instruments themselves (e.g…

Dynamic Programming With Coins

September 21, 2019

Dynamic programming is tricky. Here’s my attempt at visualizing the thought process. Underlying code, live examples, and full walkthrough…

First!

September 20, 2019

Ah, post #1 in a fresh, evergreen blog. Whitespace as far as the eye can see. Let’s put an end to that. Above is a data visualization of…