Skip to main content

Matt Smith

  • About
  • Contact
Web Dev | Front-End Engineer | UX Designer

Explicit resource management in JavaScript

3 min read
0 views

Writing JavaScript that opens something (a file, a stream, a lock, a database connection) also means remembering to clean it up. And if we’re being honest, that cleanup doesn’t always happen. I know I’ve missed it more than once. JavaScript has always made this our problem. We reach for try...

  • JavaScript

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

3 min read
8831 views

Most front-end code processes data long before it ever hits the screen. We fetch a list, tweak it, trim it down, and repeat. And usually without thinking too hard about how much work we’re doing along the way. For years, modern JavaScript has pushed us toward a familiar pattern: data...

  • JavaScript

React has changed, your Hooks should too

3 min read
8603 views

React Hooks have been around for years, 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 simple rewrite of lifecycle...

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