about 1 month ago
- With version 1.0 released after 2010....
2 months ago
- Discover how to effectively type the useRef hook in TypeScript for React applications that require imperative DOM manipulation. Learn best practices, common pitfalls, and practical examples, such as controlling the focus state of an input element....
3 months ago
- Most frontend reviews sign off clean code. But your users don’t see the code, they see the bugs you missed....
- What is the type of 2 + 2 = 4?...
- Jan Miksovsky lays out his idea for website creation as content transformation. He starts by talking about tools that hide what’s happening “under the hood”: A framework’s marketing usually pretends it is unnecessary for you to understand how its core transformation works — but...
- Meet Poltergeist: an AI-friendly universal build watcher that auto-detects and rebuilds any project—Swift, Rust, Node.js, CMake, or anything else—the moment you save a file. Zero config, just haunting productivity....
4 months ago
- Peekaboo 2.0 ditches the MCP-only approach for a CLI-first architecture, because CLIs are the universal interface that both humans and AI agents can actually use effectively...
- A quick tip on how I use repo2txt and Google AI Studio to understand new codebases. Gemini's 1M token context window is perfect for asking questions about code....
5 months ago
- One of my pet peeves with testing in web development is mocking. So many devs tend to be purists who insist that the unit under test should be the only thing being tested, and that's why they mock everything. In projects that use Prisma or any other ORM, developers mock the ORM...
- TypeScript's type system can play DOOM. Surely we can make it do something useful for our projects too, right?...
- I quite enjoyed this talk. Some of the technical details went over my head (I don’t know what “split 16-bit mask into two 8-bit LTUs” means) but I could still follow the underlying point. First off, Andreas has a great story at the beginning about how he has a friend with a...
- Sometimes you have chunks of code you need to sync. For instance, in your backend you might have some validation that you want to sync with the UI. So you write: // Please keep in sync with api/routes/create_session.py! and a corresponding: # Please keep in sync with...
6 months ago
- Struggling with TypeScript config objects that silently accept typos or destroy useful autocomplete? If you've defined settings for React, Node, CLIs, or any JavaScript application, you know the pain. In the next five minutes, you'll learn two powerful TypeScript keywords - as...
- I recently stumbled upon the term "vibe coding" through TikTok videos. It refers to using AI tools to generate code and drag-and-drop automation tools to handle business logic in apps. This trend leaves me with mixed feelings. While it's impressive to see people rapidly creating...
- One of the highlight features of Neovim 0.11 is the simplified LSP setup. My needs are pretty basic, so I moved things off the nvim-lspconfig to my configuration folder, uninstalled the plugin, and almost everything works like a charm. If you use plenty of LSPs and you...
8 months ago
- Building a package manager with a fast install step....
- Link: Real-world uses of TypeScript’s utility types - Piccalilli I have a bit of love-hate relationship with TypeScript, but there are parts of the typescript Type system that I really like. This article from Piccalilli is a great introduction to TypeScript's utility types...
- It has been a crazy month for me work-wise. Other than work and family-related responsibilities, I neglected every other area of my life in the past few weeks: blogging, hobbies, and self-care. I am on a good trajectory to slow down, and I am very much looking forward to it. I...
9 months ago
- TypeScript adds a new flag to its compiler with version 5.8: erasableSyntaxOnly. It ensures you won’t use TypeScript features that generate code....
12 months ago
- A few articles ago I wrote about using [useSyncExternalStore to write, read, and react to changes in the local storage](/blog/ssr-friendly-local-storage-react-custom-hook). I even created my own useLocalStorage hook in the same article. But the hook has one flaw. You can only...
about 1 year ago
- Some people seem to hate the file-based routing in Next.js. They prefer to use code-based routing instead. And with [Remix, a.k.a, React Router 7](https://x.com/remix_run/status/1841926043080523813) releasing a new config based routing, many people seem to be excited about it....
- Vercel is well known for deploying Next.js apps. But it is less known that it also supports [deploying projects from other frameworks](https://vercel.com/docs/frameworks/more-frameworks) like Angular, Solid, Svelte, and many more. Something even more obscure is that you can...
- Prisma has just announced a new feature in v5.19.0: [TypedSQL](https://www.prisma.io/docs/orm/prisma-client/using-raw-sql/typedsql). With this new feature, you can write SQL queries as usual and get a type-safe result. And as this is from Prisma, they designed it to be...
over 1 year ago
- Sometimes you want the type checker to help you avoid making assumptions....
Rows per page