Git revert after code moved to another file
How to do `git revert` after the code has been moved to another file
Articles about stuff I find interesting. Mostly frontend and tech-related.
How to do `git revert` after the code has been moved to another file
Here is how JSWorld Conference 2024 in Amsterdam looked like from my perspective.
Using fp-ts containers in React hook dependency arrays is tricky since their references are not stable.
Lack of strictNullChecks makes it hard to express nullability of values. [fp-ts's `Option`](https://gcanti.github.io/fp-ts/modules/Option.ts.html) comes to the type-safe rescue.
Figma does not officially support local filesystem fonts on Linux. However, there is an open-source tool that makes it possible.
yarn up '*' does not upgrade scoped packages by default. This article describes how to upgrade scoped packages.
Next.js can seem stuck fetching `getServerSideProps` result on client-side navigations. The approach outlined in the article bypasses making that network request, resulting in snappier UI, suitable for highly-interactive web applications.
Does `await` solve [the problems of `Promise.prototype.then`](/article/javascript-promised-convenience)? Not really.
In Node.js, omitting catching a rejection in at least one Promise chain leads to an `unhandledRejection` event and the process being usually killed.
JavaScript `Promise`'s `then` function offers extra convenience. Is it harmful, though?
My solution to describing the state of a multi-step wizard in TypeScript.
How to fix unintentionally changing a git submodule hash to leave no trace of a mistake on your branch.
While trying to contribute to [nvim-ts-rainbow](https://github.com/p00f/nvim-ts-rainbow) I discovered that _highlights_ in Neovim are implemented using _extmarks_.
Two approaches in TypeScript to changing the type of an `options` parameter based on a generic function parameter.
My journey to using HiDPI in i3 and finally getting the full benefits of having a 4k monitor.
The [fp-ts](https://github.com/gcanti/fp-ts) library puts errors to the forefront and helps write type-safe code that correctly reports errors. Collecting errors from multiple operations can sometimes lead to boilerplate code. Let's see if there is a way to make that code shorter.
How to avoid duplicate work when serving pages for my blog? Building up indexes that summarize the articles in a concise format is one solution to this problem.