:hover vs :focus

2019-08-16

 | 

~2 min read

 | 

317 words

Most of the time, these two pseudo-selectors act in concert. In fact, they’re so frequently triggered together that my naive testing…

regex search in vs code

2019-08-15

 | 

~2 min read

 | 

261 words

Finding all instances of an imported module in a large app can be challenging. With the namespace for a module being restricted to the file…

replacing mouseevents with pointerevents

2019-08-14

 | 

~1 min read

 | 

174 words

How can the necessity of handling different types of inputs (e.g., mouse, touch, and pen) by duplicating event handler logic? The Pointer…

typescript generics: a basic use case

2019-08-13

 | 

~4 min read

 | 

686 words

When does it make sense to use a Generic in a Typescript type? How do you create a type that takes a Generic? I’ve read through the…

importing modules while reducing clutter

2019-08-12

 | 

~5 min read

 | 

934 words

I’ve developed a peculiar habit. I knew I’d developed it, but didn’t know it was peculiar until my lead asked me about it this morning. When…

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!