default enums and fallbacks

2019-10-12

 | 

~2 min read

 | 

342 words

Working on a component that receives a prop where the status are defined by an enum (I’m working in Typescript). The problem arose when a…

named anchors & markdown

2019-10-11

 | 

~2 min read

 | 

227 words

When writing longer files in Markdown, it can be useful to create links within the document to help readers navigate. This cross referencing…

gitlab description templates

2019-10-10

 | 

~2 min read

 | 

349 words

We use templates to help write descriptive tickets or MRs on various projects at work. 1 Then I started working on a new project and when I…

supporting submit on enter

2019-10-09

 | 

~3 min read

 | 

539 words

When asking users for their input, it’s often a pleasant user experience to allow them to submit the form by pressing “Enter”. In fact, that…

bubbling up exceptions and throwing objects

2019-10-08

 | 

~3 min read

 | 

533 words

Every time I’ve thrown an error, I’ve used the object. It turns out, however, you can throw anything. I probably knew this intuitively, but…

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!