Dante Chun - Dev

Articles in Dev category.

Prisma vs Raw SQL: When to Use What

A practical comparison of ORM and direct SQL queries. Sharing the pros and cons of each and selection criteria for different situations.

Introduction to TypeScript’s "satisfies" Operator

The satisfies operator, introduced in TypeScript 4.9, plays a crucial role in enhancing type checks and improving code stability. This operator is used to check whether a specific object or value meets the requirements of a designated type. In this post, we will explore the functionality and usage of the satisfies operator, as well as its differences from the as keyword.

Instantly Display Streamed JSON Data from ChatGPT

Recently, while working with the ChatGPT API and processing JSON data received as a stream, I got an idea for a new module. This module allows you to parse and display incomplete JSON data quickly, greatly enhancing the user experience. In this blog post, we'll dive into the usage and benefits of this module.

'isLoading' vs 'isFetching' of ReactQuery

I made an interesting discovery while using the keepPreviousData option in React-Query. Especially, I realized the importance of understanding the management of isLoading and isFetching states.