Evan bio photo

Evan

Noticing Birds.

Email LinkedIn Public Key Github

Buttons were discovered in the Indus Valley circa 2800 BC. People have been finding nice shells or rocks putting holes in them, and sewing them to their clothing. It was only 4,000 years later that people in Northern Europe realized that you could put a hole across from that decorative button, and actually use it to fasten a jacket.

At the small startups I tend to work at, they’re heads down on solving hard problems. I like to join and make some buttonsholes, introducing some convenience.

The primary tool I have for this is this little snippet: `

select
  date_trunc('day', created_at),
  count(*)
from that_table
group by 1

Everyone team has a graph they care about. Management is focused on the money graph. Engineering might look at query response time over time. Product might be focused on users.

Often there is no one looking at the “business table”, which is a table tracking the primary thing the company does. When I worked at an art auction house, this was the “lots” table, at a law firm “documents”, and at an industrial disaster tracking company, “events”.

It’s very hard for small companies to introspect enough to determine their culture. Most of the time, you get a list of platitudes, but the real culture comes from scar tissue, the initial wound, how bad the wound was, and how it was healed or failed to heal properly.

Most of the time, the best way to reveal these is with a graph of the business table. Run the above query, make a little graph, and you get something like this.

If you sit down with the most tenured engineer, you can learn about the history of the company that you’re not going to find in your onboarding slides.

For each change point, there is a story and a revelation of company history. All you need to do is run two lines of code to find out.

data_growth

From left to right, you can see the Nobraska Incident, where there were so many events from Nebraska that the company had to stop recording events from there. Lots of subsystems have specific exclusions for Nebraska, and now you know why, well before you run into a ticket about a Nebraska related bug.

The first outage lasted 9 days because there was no alerting or monitoring, just completely forgotten about. The world can do a couple days without a major event, and the website was still loading (mostly), so no one noticed things were on fire. Culturally, the scar tissue here is immense, but you’d never casually find out.

When the initial data vendor declared bankruptcy, it was all hands on deck to find a new source. This could have killed the company. Completely green, the new biz dev hire was calling everyone in her Rolodex to figure out a new source of this data, maybe someone from her old job would know. Turns out she was able to get access to a proprietary data stream, saving the company.

Who knows one little bit of code could reveal so much history.