My name is Mark. I'm a software engineer and drummer. I live in NYC. I write about coding from time to time. Thanks for checking out my blog. Scroll down to see some posts.
Unknown vs Any
Why unknown is the better choice between Typescript's top types.
Compile time validation on runtime data.
Opaque Types - better type safety and easier to understand code
Use opaque types to enforce application correctness.
Exhaustive Switch Statements in Typescript
Prevent holes in your application with exhaustive type checking.
ADT's and polymorphism
Write better types for your business logic using using sum types.
Roll your own error handling middleware for redux
Error handling in JS is one of my least favorite things. This pattern makes it okay I think.
How Languages Shape Our Thinking
How learning new languages forces us to think in different ways.
Setting Up Authenticated Sessions with Svelte and Sapper
How to setup a session store and use JWT's to keep track of user authentication in my new favorite framework.
Accessible Art Direction with Gatbsy Images
How to be sure that your art-directed images are accessible to screen readers.