json: adding comments

2022-01-10

 | 

~1 min read

 | 

144 words

The JSON specification does not actually support comments, but sometimes it would be really handy to be able to comment your JSON. There are…

implementing a minmaxheap

2022-01-09

 | 

~3 min read

 | 

413 words

Many moons ago, I had an interview where I was asked to find the x smallest value in a list. Javascript makes that fairly easy, however, my…

git: using blame to see when a line was modified

2022-01-09

 | 

~1 min read

 | 

68 words

In VSCode, there’s a built in git blame feature that will allow you to inspect who is responsible for the last change to a line. This is…

git: when was a file introduced?

2022-01-09

 | 

~2 min read

 | 

374 words

How can you use Git’s CLI to figure out when a file was initially introduced? When doing so, how do you handle renames? Think of this as…

typescript: type narrowing with tiny-invariant

2022-01-05

 | 

~1 min read

 | 

158 words

I’ve written about type narrowing before in the context of type guards here and here. The addition of tiny-invariant to the process is to…

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!