Skip to main content

Matt Smith

  • About
  • Elsewhere
Modern Web Engineering, Front-End First

Explicit resource management in JavaScript

2 min read

Writing JavaScript that opens something (a file, a stream, a lock, a database connection) also means remembering to clean it up. That cleanup doesn’t always happen. I know I’ve missed it more than once. JavaScript has always made this our problem. We use try / finally, tell ourselves we’ll be...

  • JavaScript

Stop turning everything into arrays (and do less work instead)

2 min read

Most front-end code processes data long before it ever hits the screen. We fetch a list, tweak it, trim it, repeat, and rarely stop to think about how much work that is. For years, modern JavaScript has pushed us toward a familiar pattern: data .map(...) .filter(...) .slice(...) .map(...) It’s readable...

  • JavaScript

React has changed, your Hooks should too

3 min read

React Hooks have been around since 2018, but most codebases still use them the same way: a bit of useState, an overworked useEffect, and a lot of patterns that get copy-pasted without much thought. We’ve all been there. But Hooks were never meant to be a straight rewrite of lifecycle...

  • React
Older posts Newer posts
GitHub
LinkedIn
CodePen
RSS
© 2026 Matt Smith. All rights reserved.