system design: estimating storage

2021-12-22

 | 

~2 min read

 | 

209 words

Some rules of thumb for data sizing: - 4 bytes - 8 byts - 4 bytes - 3 bytes - 5 bytes single character - 2 bytes (depends on encoding…

system design: a framework for approaching the problem

2021-12-22

 | 

~3 min read

 | 

455 words

When presented with a question about system design, where do you begin? The system-design-primer project on Github provides an accessible…

express: extending the request interface in middleware

2021-12-22

 | 

~3 min read

 | 

445 words

One of Express.js’s strengths is how easy it is to write middleware. However, the first time you try to do so with the type bindings for…

typescript: declaration merging

2021-12-22

 | 

~3 min read

 | 

411 words

Declaration merging is a powerful concept in Typescript that allows you to extend type definitions in many ways. From the Typescript…

api design: a framework for thinking about responsibilities at various layers

2021-12-21

 | 

~2 min read

 | 

289 words

I was working through some API design and trying to find the right level of abstraction for my different portions of code. I came up with a…

Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!