Two weeks ago
- With version 1.0 released after 2010....
about 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....
- 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...
4 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...
5 months ago
- 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...
- 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...
6 months ago
- 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...
7 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...
8 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....
11 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...
- Sometimes you want the type checker to help you avoid making assumptions....
- Python's base class (and base type) can help keep you safe when your data could be anything....
over 1 year ago
- Last month I wrote about [how to feed the result of function calls back to the model](/blog/vercel-ai-function-call-tool-example) using the [Vercel AI SDK](https://sdk.vercel.ai/docs/introduction). The team at Vercel have just released a new version (3.1.22) of the SDK with a...
- Drizzle ORM converts types from SQL to TypeScript, and can help JS devs work with relational databases in TypeScript environments. Drizzle ORM is described by i......
- Last weekend we had a small internal hackathon at Hyperjump to create an AI chat bot. I used the stack I'm most familiar with—Next.js, TypeScript, Tailwind CSS and OpenAI. When the project reached a good enough version, I could simply share the link to the deployed project so...
Rows per page